users@glassfish.java.net

Post to JMS without transactions?

From: <glassfish_at_javadesktop.org>
Date: Fri, 26 Feb 2010 17:14:51 PST

Simply put I would like to post to a JMS message queue, but have it be transaction free.

I don't care about persistent messages, and I have no expectation (or requirement) that the messages will survive a server restart.

I'm not concerned about the MDB consuming the message, that can use transactions, no big deal.

But I've had in the past posted to JMS queues when the server is in a "questionable" transactional state (during method interceptors and other life cycle events), and the transaction surrounding the message post was problematic enough to make us yank it out.

Now I have a singleton internal queue with a long running timer bean job harvesting it, but it too is having really odd issues. So, I'd like to go back to JMS if I can (since that is what it's for) rather than reimplementing it myself.

Any pointers on how to configure a JMS queue to do this?
[Message sent by forum member 'whartung' (redrocks_at_sbcglobal.net)]

http://forums.java.net/jive/thread.jspa?messageID=389033