users@glassfish.java.net

why isn't my JMS session transacted if session = createSession(true, ?

From: <glassfish_at_javadesktop.org>
Date: Mon, 07 Jan 2008 18:29:44 PST

So why doesn't this code create a transacted JMS session within my session bean?

I've tried setting the connection factory to both XA Transaction and Local Transaction, but when I getTransacted() it is always false.

I'm using the Glassfish MQ.

    @Resource(name = "jms/HubFactory")
    private ConnectionFactory connectionFactory;
...

            session = connection.createSession(true, Session.SESSION_TRANSACTED);
            System.err.println("transacted = " + session.getTransacted());


prints:
transacted = false
[Message sent by forum member 'frenchdrip' (frenchdrip)]

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