JBoss 4.0.1
JDK 1.5.0_02

I have code that is running inside of a JTA transaction.  I get a JMS 
connection factory by looking up "java:/JmsXA" from JNDI.  I create a JMS 
session and send a message to a queue.  My understanding was that the JMS XA 
resource adapter would wait until the JTA transaction is committed until it 
actually sends the message.  However, I have a remote machine that is listening 
to the queue, and it receives the message before I commit my transaction.  
Maybe I'm doing something wrong, or maybe I'm not understanding how the 
resource adapter is supposed to work?  Does it matter what parameters I pass to 
createSession() on the JMS connection?  From what I've been able to figure out 
based on the sparse documentation, it doesn't.  If it does, when should I call 
commit() on my JMS Session?  If I'm just doing something wrong, I would really 
appreciate a simple example of getting a JMS connection and sending a message 
within the context of a JTA transaction.  Thanks for any help anyone out there 
can provide.

--Tim

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3890882#3890882

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3890882


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to