Re: JNDI Datasource?

Attila Szegedi <[email protected]> Mon, 23 Jun 2008 12:51:27 +0200
Newsgroups gmane.comp.windows.devel.java.advanced
Message-ID <[email protected]>
I think you'll have better luck asking this on tomcat-user mailing
list at <http://tomcat.apache.org/lists.html>

Attila.

On 2008.06.13., at 17:06, Memisyazici, Adam wrote:

> 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 = (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

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

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