-
1. Re: JMS session not committed by Container Transaction
adrian.brock Jun 3, 2003 11:48 AM (in response to artems)Use the connection factory java:/jmsXA
Regards,
Adrian -
2. Re: JMS session not committed by Container Transaction
artems Jun 3, 2003 1:11 PM (in response to artems)Well, I've changed the jndi name from "ConnectionFactory" to "java:/XAConnectionFactory" (is that what you mean?) and it worked the same.
Then I realised that to participate in XA transaction the session must be XATopicSession and not TopicSession (is that correct?).
So i changed the code to use XA classes all the way:
topicConnection = connFactory.createXATopicConnection();
xaTopicSession = topicConnection.createXATopicSession();
publisher = xaTopicSession.getTopicSession().createPublisher(topic);
message = xaTopicSession.createObjectMessage(obj);
publisher.publish(message);
xaTopicSession.close();
Now it throws JMSException("Invalid transaction id") on calling the publish() method.
What's wrong now?
Thank you,
Artem -
3. Re: JMS session not committed by Container Transaction
artems Jun 4, 2003 3:00 AM (in response to artems)You right, everything i need is to use jndi-name java:/JmsXA in jboss.xml
No need to use XAConnectionFactory, XATopicSession etc.
Everything works great.
Thanks!
Artem