Hi,
if I use the DefaultMessageListenerContainer
of Spring to recieve JMS messages, I don't get JMS messages redelivered, even if I set sessionAcknowledgeMode
to 2.
In case of a RuntimeException
within the onMessage()
of my JavaBean, the message is not acknowledged within the JMS provider (ActiveMQ), it stays as pending in the queue. But it is never redelivered, which I think is caused by the fact that Spring never calls session.recover()
, which according to ActiveMQ's documentation is required to is required for redelivery to happen.
Can anybode give me a hint how I can configure DefaultMessageListenerContainer
to call session.recover()
in case of RuntimeExceptions?
Best regards,
Martin