For using JTA tech,you should integrate JTA,and make the resources support XATransaction. Emm~~~~,It sounds a good idea to do that,but first of all,if your systems based on oracle,you have should granted session transaction priviledges to your access user. Then,you jta will run well.
grant select on pending_trans$ to tom; grant select on dba_2pc_pending to tom; grant select on dba_pending_transactions to tom; grant execute on dbms_system to tom; grant execute on dbms_xa to tom;原文链接:https://www.f2er.com/oracle/213307.html