As for your description, you make full use of the connection pooling....
When you close the connection, it is returned back to the pool. I use
exactly the same scenario.
--hermann
PS : i'd be interested if there's a better way to use connection pooling.
Hermann RANGAMANA ==> [EMAIL PROTECTED]
Primagendys SAS
www.primagendys.fr
----- Original Message -----
From: "Allan Kamau" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 07, 2001 12:01 PM
Subject: [JBoss-user] Using Minerva
> I understand Minerva is a pool of connections to a
> database.
> I have configured my postgresql 7.1.1 database to be
> accessed by Minerva and I have successfully queried
> the database.
> However I don't think I am making use of connection
> pooling offered. I am obtaining a DataSource object
> from the java:/myDB then I open a connection on the
> Datasource. Upon completion I close the connection (as
> I noticed postgresql will lock the table till I close
> the connection) and set the connection along with the
> Statement objects to null.
> If someone has a better way to use the pool show me in
> sample code lines.
>
> Thank you in Advance.
>
> Allan
>
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail - only $35
> a year! http://personal.mail.yahoo.com/
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user