I don't know about the version 4, but 3.x default tx manager does not support distributed transactions. However Tyrex, a distributed tx manager, is provided with JBoss. You only have to edit the config to enable it.
If you still wish to use JoTM, you have to write a service MBean for it that will bind JoTM to the right JNDI name. For more info look at the JBoss Docs and org.jboss.tm.plugins.tyrex.TransactionManagerService or org.jboss.tm.TransactionManagerService implementations.
If you succeed integrating JoTM in JBoss or find someone that already did that, please let me know. I'll probably have to do the same thing.
BTW is it true that Tyrex is not maintained anymore?
i have used Tyrex as DTM , but i found that it decreases the performance of Jboss. So i want to
use JOTM as DTM, the problem is that i am not familiar with JOTM and not very certain of how to do this work. If anyone knows it ,please give me some examples or some suggestions ,thank you in advance.
Now Tyrex has released its new version , but it doesn't
change any code related to DTM.