Dmitri:

No reason I can think of. I use a single connection pool singleton object
for both servlets & server-side java objects, works great.

Mike N
Javacorporate Ltd
http://www.javacorporate.com

-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
Dmitri Namiot
Sent: Friday, September 03, 1999 12:29 PM
To: [EMAIL PROTECTED]
Subject: Global ConnectionPool Servlet


Hi,

and what is the reason to keep connection pool in servlet ?
Why you can not have just java class, implements singleton
pattern ?

> Does anyone know how we can implement a Global JDBC Connection pool in
   > JSDK
   > 2.1 after the getServlet() method is removed??..
   > This pool is supposed to be shared by all the servlets. I used to call
   > getServlet() to get a reference to the DBServlet and then invoked the
   > getConnection() method to get a free JDBC connection. But how do i
achieve
   > this with RequestDispatcher????

ColdJava: java server side programming
http://coldjava.hypermart.net

____________________________________________________________________
Get your own FREE, personal Netscape WebMail account today at
http://webmail.netscape.com.

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to