pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <craig@postnewspapers.com.au>
To: Vitalii Tymchyshyn <tivv00@gmail.com>
Cc: Dave Cramer <pg@fastcrypt.com>
Cc: List <pgsql-jdbc@postgresql.org>
Subject: Re: JDBC gripe list
Date: Tue, 29 Mar 2011 18:11:51 +0800
Message-ID: <4D91B067.9040008@postnewspapers.com.au> (raw)
In-Reply-To: <4D919A02.60607@gmail.com>
References: <AANLkTik0kW5_jCAc7h0T_Q5cCGx=tunasHJ=nf0X=+ij@mail.gmail.com>
	<AANLkTi=+JZvbmJnjjJZZGvxb4oetzwZ1KH3SHqJ-SBJm@mail.gmail.com>
	<4D914191.8050103@postnewspapers.com.au>
	<4D919A02.60607@gmail.com>

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/



view thread (65+ messages)  latest in thread

Message-ID: <4D91B067.9040008@postnewspapers.com.au>
Permalink:  ../4D91B067.9040008@postnewspapers.com.au/
Also on:    postgresql.org/message-id/4D91B067.9040008@postnewspapers.com.au

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: craig@postnewspapers.com.au, tivv00@gmail.com, pg@fastcrypt.com
  Subject: Re: JDBC gripe list
  In-Reply-To: <4D91B067.9040008@postnewspapers.com.au>
  References: <AANLkTik0kW5_jCAc7h0T_Q5cCGx=tunasHJ=nf0X=+ij@mail.gmail.com> <AANLkTi=+JZvbmJnjjJZZGvxb4oetzwZ1KH3SHqJ-SBJm@mail.gmail.com> <4D914191.8050103@postnewspapers.com.au> <4D919A02.60607@gmail.com> <4D91B067.9040008@postnewspapers.com.au>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox