2 Replies Latest reply on Feb 10, 2015 10:09 AM by Andy Taylor

    How to organize transactional mechanism with hornetq.

    Oleg Skorobogatov Newbie


      I have reader which sends messages into two queues using Hornetq.

      This reader has a lot of logic and has exception handler.

      My question is what is the good way to create rollback mechanism which will rollback all messages which were sent and then exception was occurred?

      During tests I was restarting hornetq server and session reconnect works fine, but couple messages were loosen. Is it normal behavior or it's possible to solve it.

      I'm using JMSTemplate to send messages, and SImpleMessageListenerContainer to read messages.

      Thank you.