RE: Problem in stopping JMS Server.
"Tim Anderson" <[email protected]>
| Newsgroups | gmane.comp.java.openjms.user |
|---|---|
| Message-ID | <[email protected]> |
The workaround for this is to add an embedded connector in your
configuration file. If an embedded connector is registered, the server
terminates, but doesn't invoke System.exit().
E.g:
<Connectors>
<Connector scheme="tcp">
<ConnectionFactories>
<ConnectionFactory name="ConnectionFactory"/>
</ConnectionFactories>
</Connector>
<Connector scheme="embedded">
<ConnectionFactories>
<ConnectionFactory name="dummy"/>
</ConnectionFactories>
</Connector>
</Connectors
Note that this only works in 0.7.7+.
-Tim
_____
From: openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
[mailto:openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Praveen
Upadhyay
Sent: Monday, 31 October 2005 9:03 PM
To: [email protected]
Subject: [openjms-user] Problem in stopping JMS Server.
Since the EmbeddedJMS Class is depricated, thats why I am using
JMSServer Class in my application. But when I am stopping the JMSServer then
the entire application is exited but I want not this to happen. I want that
my application should not exit when I stop the server. How I can acheive
this with using JMSServer Class. Please help in this regard........