Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Transaction Management - JTA, JCA, or both?

843853Jul 25 2001 — edited Jan 11 2002
I am pretty new to both JTA and JCA, but I want to handle global transactions to multiple databases in my Java application. I am considering implementing either JTA or JCA to accomplish this. The JCA spec says it handles transaction management as well. If I implement JCA using a J2EE App server, and a JDBC driver that supports 2-phase commit; is it sufficient, or should I implement JTA as well? Is one better than the other? Or would that be redundant because I know that the ManagedConnection.getXAResource() method returns a javax.transaction.xa.XAResource. Does that mean that if I use JCA, I'm automatically using JTA?

Also, if I use session beans, what are the pro's and con's of using CMT or BMT?

-Thanks for your help
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 8 2002
Added on Jul 25 2001
3 comments
707 views