users@glassfish.java.net

Re: Delivery of JMS message in case of distributed transaction

From: <glassfish_at_javadesktop.org>
Date: Fri, 26 Jun 2009 08:00:13 PDT

> Could also someone confirm me that using
>
> c.createQueueSession(false,
> Session.AUTO_ACKNOWLEDGE);
>
> to send a JMS message from within an SLSB is the
> right way to go? I've always heard that the flags had
> no importance if we were in a global transaction....

If you've looked up the connection from Glassfish's JNDI in the standard way, then yes, that's correct. The arguments to createSession() are not used when you're running in JavaEE environment: the session will join the XA transaction (whether contrainer-manager or bean-managed).

Nigel
[Message sent by forum member 'nigeldeakin' (nigeldeakin)]

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