Jun 5th, 2009, 06:54 AM
ActiveMQ/JMS and transactions
I'm currently trying to create a standalone application which reads from an ActiveMQ and calls an external service. This is all currently done programmatically without Spring.
I have a MessageListener, which calls the service in the onMessage(:Message) method. What I want to achieve is that the onMessage method is transactional, that is, if anything goes wrong in onMessage, the Message being passed back will remain in the queue and nothing will be affected.
Is it fine to do this as is, using ActiveMQ and just use a transacted Session? Would I have to use client acknowlegement mode as well? Is Spring needed at all in this scenario?
Last edited by jamiebarrow; Jun 5th, 2009 at 07:58 AM.
Tags for this Thread