Re: JDBC gripe list - Mailing list pgsql-jdbc

From Craig Ringer
Subject Re: JDBC gripe list
Date
Msg-id 4D91B067.9040008@postnewspapers.com.au
Whole thread Raw
In response to Re: JDBC gripe list  (Vitalii Tymchyshyn <tivv00@gmail.com>)
List pgsql-jdbc
On 29/03/2011 4:36 PM, Vitalii Tymchyshyn wrote:

> Please note that you will get into problems with classloaders and
> different containers. E.g. running a thread from classloader will
> prevent this classloader to be GCd. Tomcat handles this (with a lot of
> warnings), but it is not recommended practice. See
> http://www.theserverside.com/discussions/thread.tss?thread_id=44353 or
> http://stackoverflow.com/questions/533783/why-spawning-threads-in-j2ee-container-is-discouraged

Good point. When running under a container, it'd be best to get a thread
pool from the container via JNDI or using resource injection. that
should be fairly easily handled using a connection param.

--
Craig Ringer

Tech-related writing at http://soapyfrogs.blogspot.com/

pgsql-jdbc by date:

Previous
From: Vitalii Tymchyshyn
Date:
Subject: Re: JDBC gripe list
Next
From: Vitalii Tymchyshyn
Date:
Subject: Re: JDBC gripe list