File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes How can we handle transactions using Java Connector Architecture? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "How can we handle transactions using Java Connector Architecture?" Watch "How can we handle transactions using Java Connector Architecture?" New topic
Author

How can we handle transactions using Java Connector Architecture?

Sumit Bhoyar
Greenhorn

Joined: Oct 06, 2008
Posts: 14
I am not expecting actual code. Only concept or description will be enough.
William P O'Sullivan
Ranch Hand

Joined: Mar 28, 2012
Posts: 860

Plenty of concepts in here ...

http://en.wikipedia.org/wiki/Java_EE_Connector_Architecture

WP
Sunderam Goplalan
Ranch Hand

Joined: Oct 10, 2011
Posts: 68
Normally the transactions in JCA are managed by the Application Server. App server implements the Transaction contracts between itself and the back end system. I believe application servers such as JBOSS or WAS implement JCA even for setting up connections to RDBMS like Oracle. In this case, it's usually set up as a LOCAL TRANSACTION without the need for an external transactional coordinator.

However if you use JCA to talk to multiple data sources (say, Oracle and LEGACY System), it needs to be set up as XA transaction with the need for an external transaction coordinator that can do a Two phase commit.
Developers would be providing configuration information alone (Local or XA, login credentials and other metadata) while the Application server usually implements the Transaction contracts required by the Application.

SCJP 5.0 , SCEA Java EE 5
Sumit Bhoyar
Greenhorn

Joined: Oct 06, 2008
Posts: 14
Thanks Sunderam for this info.
So this is my understanding-
Some JCA adapters doesn't support transactions.
If JCA adapter is communicating with single system and managing transaction, then it is set up as LOCAL TRANSACTION.
If JCA adapter is communicating with multiple systems and managing transaction, then it is set up as XATransaction.

Please correct me if I am wrong.
Sunderam Goplalan
Ranch Hand

Joined: Oct 10, 2011
Posts: 68
Correct.

As for this "Some JCA adapters doesn't support transactions", I'm inclined to think that, at least in 2012, is that most JCA adapters DO support transactions. Few may not, as you say, yes.
Sharma Ashutosh
Bartender

Joined: Apr 06, 2001
Posts: 346
And i believe any JCA adapter which doesn't support XA transaction-corresponding adapters from the Application server vendors are provided to fulfill this need.


Ashutosh Sharma
SCJP 1.2, SCEA 5, Brainbench certified J2EE Developer, Documentum Certified Professional
Blog : http://scea5-passingpart2and3.blogspot.com/
Sumit Bhoyar
Greenhorn

Joined: Oct 06, 2008
Posts: 14
Thanks Sunderam, Ashutosh for your comments
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can we handle transactions using Java Connector Architecture?