What happens on a JMS queue when onMessage() throws a JMSException?

Posted by user311121 on Stack Overflow See other posts from Stack Overflow or by user311121
Published on 2010-04-07T15:14:13Z Indexed on 2010/04/07 20:23 UTC
Read the original article Hit count: 173

Filed under:
|
|

Hi,

I'm using Spring 2.5 with my custom class that implements MessageListener. If a JmsException is thrown in my onMessage( ) method, what happens to the state of the queue?

Is the message considered "delivered" by the queue the moment onMessage is called? Or does the JmsException trigger some kind of rollback and the message is re-entered on the queue?

Thanks in advance!

© Stack Overflow or respective owner

Related posts about jms

Related posts about spring