tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Problem closing datasource when used as JNDI resource
Date Wed, 19 Aug 2009 13:34:59 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mohammed,

On 8/19/2009 8:25 AM, Mohammed Bin Mahmood wrote:
> When tomcat takes care of creating maintaining datasource, then does it not
> closes it when server is shut down?

According to Filip's comments on the first thread you mentioned, yes:
the connection pool is not explicitly closed.

> Do we have to close it on our own (the way I do) or is there any better way
> to do it without external listener?

The best way would be to have Tomcat actually shut-down the DataSource,
since it created it in the first place.

Patches to Tomcat are always welcome :)

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

iEYEARECAAYFAkqL/4MACgkQ9CaO5/Lv0PD39QCdEWcriY2WJyRfKDYmCtZM10Gu
2GgAnRGHpsPKz4bKLCXw9ylHnTFGdvfn
=EwiF
-----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