Re: Problems re-connecting to OpenJMS after program crash

Tim Anderson <[email protected]> Wed, 10 Oct 2007 14:10:44 +1000
Newsgroups gmane.comp.java.openjms.user
Message-ID <[email protected]>
George H wrote:
> Hi,
>
> I am using OpenJMS 0.7.7 Beta 1 in a linux environment (using JDK
> 1.5). Everything works fine except when this scenario occurs.
>
> A java program connects to OpenJMS and is a durable subscriber to
> various topics. The java program crashes (somehow, it happens) and the
> connection to OpenJMS server is lost. When the program is run again
> and tries to connect to the OpenJMS server it catches an exception
> that the durable subscriber already exists.
>
> This only happens when a client does not cleanly disconnect form
> OpenJMS (that is closing all the sessions, topics ..etc)
>
> The only solution I found is to restart the OpenJMS but I REALLY don't
> want to do that. Is there a way to circumvent this problem ? Any work
> arounds ?
>
> Thanks.
> --
> George H
> [email protected]
>   
This is a bug. The server should reap the connection associated with the 
client, and in doing so clean up the
associated Sessions etc, but this is currently not happening. I'll take 
a look at it next week.

-Tim

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/