JNDI Datasource?

"Memisyazici, Adam" <[email protected]> Fri, 13 Jun 2008 11:06:51 -0400
Newsgroups gmane.comp.windows.devel.java.advanced
Message-ID <[email protected]>
This may be a stupid question but I really need a good solid answer for
this.

Does a JNDI lookup of a Resource defined in Tomcat server.xml
configuration actually "initiate a pool object"/"return the ref for an
existing one" or is it simply a configuration for the pool, and the
program who calls the .lookup initiates a new pool each time?

Ex-code:

pool =3D (DataSource)env.lookup("jdbc/pool");

PS: I might be missing something because we have our production apps not
functioning properly and I seem to be under the gun.

-Erdem

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
This list is hosted by DevelopMentor=AE  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com