Signal a rollback from a JMS MessageListener

后端 未结 3 1591
粉色の甜心
粉色の甜心 2021-02-05 19:28

I\'ve been working with JMS and ActiveMQ. Everything is working wonders. I am not using spring, nor can I.

The interface javax.jms.MessageListener has only

3条回答
  •  星月不相逢
    2021-02-05 20:09

    If your session is transacted,then "acknowledgeMode" is ignored anyways..So, just leave your session transacted and use session.rollback and session.commit to commit or rollback your transaction.

提交回复
热议问题