Hi Wolf-Dieter Fink,
Thanks for the reply.
I found an article about JTS.
So, If I wanted to manage Distribute Transactions between 2 JBoss, the 2 JBoss must have the same version..or at least being JBoss 5.x
Suppose that after configuring JTS in my JBoss 5.1 what's type of SessionBean should I use ?
I mean, I should use SessionBean with TransactionManagementType=BEAN or TransactionManagementType=CONTAINER ?
Moreover, in case I should use SessionBean with TransactionManagementType=BEAN what's the TransactionAttributeType do I have to use for the methods of the Bean ?
Thank you very much.
In case of using Type=BEAN you have to explicit programming by your own (lookup UserTransaction, begin, commit/rollback), the annotations like Tx=REQUIRED/SUPPORTED are ignored!
Also in case of Bean managed Tx the EJB spec define to suspend a running transaction if the bean is called remote.
For that use Type=CONTAINER and set the Tx annotation that you need to the method.
Also I would recommend to use the latest 5.1 (because of bugfixes since 5.0)