pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vitalii Tymchyshyn <tivv00@gmail.com>
To: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: Craig Ringer <craig@postnewspapers.com.au>
Cc: Dave Cramer <pg@fastcrypt.com>
Cc: List <pgsql-jdbc@postgresql.org>
Subject: Re: JDBC gripe list
Date: Tue, 29 Mar 2011 17:29:41 +0300
Message-ID: <4D91ECD5.6010109@gmail.com> (raw)
In-Reply-To: <4D91A252020000250003BE85@gw.wicourts.gov>
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>
	<4D91A252020000250003BE85@gw.wicourts.gov>

29.03.11 17:11, Kevin Grittner написав(ла):
> Vitalii Tymchyshyn<tivv00@gmail.com>  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.
>
> Would this be a problem if closing the last open connection in the
> driver instance caused a call to Timer.cancel()?
I think this may help. There are a lot of tricks and confusion with 
classloaders and I am not an expert in it.
Some more things to check are:
1) Thread creation may be prohibited by SecurityManager. I'd expect J2EE 
containers prohibit such a thing since EJBs are prohibited to create 
it's own threads.
2) Postgresql driver may be located in "global" classloader, but used 
from "local" one. I am not sure, which classloader will new thread 
receive. If it will be "local" one, this will mean global driver will 
hold reference to classloader (application) from which it were used for 
the first time. "Clever" container may kill such a thread when 
application is shut down.

Best regards, Vitalii Tymchyshyn




view thread (65+ messages)  latest in thread

Message-ID: <4D91ECD5.6010109@gmail.com>
Permalink:  ../4D91ECD5.6010109@gmail.com/
Also on:    postgresql.org/message-id/4D91ECD5.6010109@gmail.com

 · 

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: tivv00@gmail.com, Kevin.Grittner@wicourts.gov, craig@postnewspapers.com.au, pg@fastcrypt.com
  Subject: Re: JDBC gripe list
  In-Reply-To: <4D91ECD5.6010109@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> <4D91A252020000250003BE85@gw.wicourts.gov> <4D91ECD5.6010109@gmail.com>

* 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