I am using the Java Client

I have a scenario where I'd like to get a message from a queue and do some validations and decide if it needs processing , if not then put it back in the queue for a later time.

Whats the best way to accomplish this.. Can I just get the message not and not call baskcAck if I don't need to process it ? Not calling basicAck puts the message back on teh queue after a while ?

Currently I have a working solution where I get the message, deserialize it and then put the message back again into the queue. Is there a better way ?

<br><hr align="left" width="300">
View this message in context: <a href="http://old.nabble.com/queue-architecture-tp30079644p30079644.html">queue architecture</a><br>
Sent from the <a href="http://old.nabble.com/RabbitMQ-f25704.html">RabbitMQ mailing list archive</a> at Nabble.com.<br>