----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------



On Tue, 16 Nov 1999, Stou Sandalski wrote:

> I want to be able to share the Connection Pool across all the different
> servlets my project uses... I read in a book about something called the
> Global Servlet Context... but they say this is avaiable only in JSDK 2.1...
> but this book is kind of wack so I am not sure what exactly the little
> footnote refers to... Does this exist in JServ 1.0 ?  Can anyone suggest a
> better method for sharing the pool across all the servlets?

the pool available at:

http://www.bitmechanic.com/projects/jdbcpool/

is implemented as a JDBC driver.  consequently, it's a singleton in the
system.  Have one of your servlets instantiate the pool in its init()
method, and make sure that JServ is configured to auto-load this servlet
when it starts up.

Then any of your servlets can access connections from the pool simply by
calling:

DriverManager.getConnection()

good luck,

-- James



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to