activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric-AWL <>
Subject Correctly leaving a network of broker
Date Tue, 17 Feb 2009 18:02:38 GMT


I have two Java processes with their own embedded broker, linked together
with a multicast network of broker.

I start the "server process" which first creates its broker and connects
itself to it.
Then, I start the "client process" which first creates its broker, and
connects itself to it.

The network of broker is automatically created and all my messages sent by
the client to the server are received. And all answers sent by the server
are received by the client. Very well !

Then I ask the client to gracefully disconnect from its broker (JMS
disconnect). I think disconnect is OK, then my process wants to stop, but
has to wait until I break "CTRL-C" my server process.

I imagine there are some active threads which don't want to stop. Is there a
good way to gracefully ask my client to stop the ActiveMQ threads which are
used by the network of broker ?

Until now, I only use JMS methods. And I prefer to continue, if it's
possible (a connection parameter ?)

Thank you
View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message