activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hiram Chirino" <hi...@hiramchirino.com>
Subject Re: How to reconnect gracefully?
Date Wed, 19 Jul 2006 14:19:53 GMT
think that junit test could be created to simulate this?

On 7/19/06, Saurabh Chandra <chandrasaurabh@gmail.com> wrote:
>
> Hi,
>
> I have an embedded activemq broker inside tomcat and a consumer
> running on another tomcat server. I am able to start the broker, post
> messages to a topic from a producer inside the broker tomcat itself,
> which are recieved by a consumer listening on the consumer tomcat.
> Using activemq 4.0 with spring.
>
> I want to configure a graceful restart of the client tomcat, so thatI
> can  restart the consumer tomcat and have it again listen to the topic
>
> The scenario gives me an exception that the client-id already exists
> (when the consumer wants to reconnect) and I have to restart the
> broker and delete the journal for it to be able to reconnect. I
> suspect that the client-id is registered with the broker and the new
> client has to somehow resume connection instead of starting again. Can
> someone point me to an exact solution?
>
> thanks much
> Saurabh
>



-- 
Regards,
Hiram

Blog: http://hiramchirino.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message