-
Jun 5th, 2009, 06:54 AM
#1
ActiveMQ/JMS and transactions
Hi,
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?
Regards,
James
Last edited by jamiebarrow; Jun 5th, 2009 at 07:58 AM.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules