[rabbitmq-discuss] long running producer
rajc at myquu.com
Fri May 27 11:25:18 BST 2011
Thank you, Emile.
Java messagepatterns look very promising.
Is there a tutorial or documentation for it?
From: Emile Joubert [mailto:emile at rabbitmq.com]
Sent: Friday, May 27, 2011 1:54 PM
To: Rajarshi Chakravarty
Cc: rabbitmq-discuss at lists.rabbitmq.com
Subject: Re: [rabbitmq-discuss] long running producer
On 26/05/11 19:05, Rajarshi Chakravarty wrote:
> Can anyone post an example of a Producer program in Java that creates a
> connection to a queue and keeps it open infinitely?
> My requirement is to listen to a port and whenever data comes to it,
> send it to a Rabbit queue.
> There should be some recovery mechanism like if the connection gets
> broken, the program should attempt a reconnect.
It should be possible to construct a solution using the Java message
patterns library, which implements reconnection logic:
More information about the rabbitmq-discuss