Your question has little to do with JMS (other than you are sending a TPC in a 
JMS message).

What you are doing might be made to work, but there are many other 
considerations
you haven't taken into account (at least from the information on your post). 
e.g.
1) A JTA transaction cannot be actively associated with two threads at the same 
time
there are basic assumptions where the tx is assumed to be per
thread when ensuring thread safety
2) You need a mechanism for the commit to wait for the asynchronous stuff to 
complete,
otherwise all bets are off
3) You need to tidyup thread association (suspend)
4) If you want to see how to do things properly look at the JRMPInvoker and
TxInterceptorCMT (import/suspend/resume, etc)
5) It is not spec compliant. You are using methods that are either non spec
or aren't intended for use by applications including  
javax.transaction.TransactionManager


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

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


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to