[rabbitmq-discuss] Non-blocking Consumers approach

Matthias Radestock matthias at rabbitmq.com
Mon Aug 27 19:48:51 BST 2012


Mahesh,

On 27/08/12 19:30, Mahesh Viraktamath wrote:
> as soon as I run this application, it exists

So you want your application to never terminate? Simply stick something
like this at the end:

synchronized(this) { while (true) this.wait(); }

or

while(true) Thread.sleep(Long.MAX_VALUE);

or something similar.

Regards,

Matthias.


More information about the rabbitmq-discuss mailing list