Re: JDBC gripe list
| От | Craig Ringer |
|---|---|
| Тема | Re: JDBC gripe list |
| Дата | |
| Msg-id | 4D91B067.9040008@postnewspapers.com.au обсуждение |
| Ответ на | Re: JDBC gripe list (Vitalii Tymchyshyn <tivv00@gmail.com>) |
| Список | 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 по дате отправления: