tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: 7.0.4 problem
Date Thu, 18 Nov 2010 15:38:12 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mark,

On 11/13/2010 7:26 AM, Mark Thomas wrote:
> I think you have hit this:
> https://issues.apache.org/bugzilla/show_bug.cgi?id=50159
> 
> Technically, 7.0.4 is sticking to the letter of the J2EE spec but it
> isn't what applications expect. 7.0.5 will revert to the previous
> behaviour but with an configurable option for those folks who want their
> resource factories to behave differently.

I've just read that bug description and I'm not sure I understand it:
every request to the JNDI lookup results in a completely new DataSource
being created and filled with connections?

Uh, oh.

Does that mean that applications should request the DataSource from JNDI
a single time during it's life and then re-use that DataSource indefinitely?

I'd better stop suggesting that everyone do JNDI lookups every time they
need a db connection, then :)

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkzlSGQACgkQ9CaO5/Lv0PCC5gCgt9tZul8hmxsIfVYowcHZwrgg
SeQAoIKF8X5OrgSxybwCi03C/8uGsesI
=6y9U
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message