db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ehsavoie <emmanuel.hugon...@gmail.com>
Subject Re: Can't shutdown cleanly
Date Mon, 14 May 2007 13:16:54 GMT

ehsavoie wrote:
> Hi,
> I am using Derby in Network mode with a webapp in Tomcat. I start it
> through an ApplicationListener and I shut it down when I stop the webapp.
> I have defined a JNDI Datasource with a dbcp pool to the server in my
> context.xml file.
> All seems to be going fine but when I shutdown my webapp, the
> NetworkServerControl.shutdown() is correctly called but I have db.lck and
> dbex.lck left :o(. Also if I try to restart my webapp, the
> NetworkServerControl.start() fails. If I shudown Tomcat and restart it all
> runs fine.
> I tried to close my datasource thinking that maybe it comes from having
> opened connections because of the pool but it didn't change anything.
> I don't understand why I am getting such an issue. Can't i start and stop
> Derby in the same JVM ?
> Thanks,
> Emmanuel 

I have 2 CLOSE_WAIT connections after stopping the webapp :
tcp6       1      0 localhost:34378         localhost:1528         
How do I close my connections cleanly since this seems to be the problem ?

View this message in context: http://www.nabble.com/Can%27t-shutdown-cleanly-tf3752068.html#a10603297
Sent from the Apache Derby Users mailing list archive at Nabble.com.

View raw message