Article View: borland.public.jbuilder.java.language
Article #15550A design question
From: diego
Date: Tue, 08 Jun 1999 00:00
Date: Tue, 08 Jun 1999 00:00
18 lines
1191 bytes
1191 bytes
Hi all: I want to make a class that provides to his sub-classes a complete number of methods to open, retrieve information, close... a Connection to a Database. My idea is that the first called servlet, open the Connection to the database and the Servlets called from this one, take profit of this connection and retrieve data from the BD. The last servlet is put in charge of close the connection and send data to the browser. For all of this, the connection is declared static (to share it to other servlets). The problem is when two users access at the same time to the servlets, because the first user open de connection and close it while the second is using it. Any suggestion??. Any idea will be appreciated. Thanks in advence. Di
Technical Details
Message-ID:
<7jisb1$e32$1@diana.bcn.ttd.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,c3c765e6b760ab1e,start X-Google-Attributes: gidf74b3,public From: "diego" <diemarpe@inf.upv.es> Subject: A design question Date: 1999/06/08 Message-ID: <7jisb1$e32$1@diana.bcn.ttd.net> X-Deja-AN: 487020439 Organization: Telefonica Transmision de Datos X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Newsgroups: borland.public.jbuilder.java.language