aspose file tools
The moose likes EJB and other Java EE Technologies and the fly likes distributed transactions Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "distributed transactions" Watch "distributed transactions" New topic
Author

distributed transactions

Sireesh Ganagam
Greenhorn

Joined: May 08, 2012
Posts: 7
Hi All ,

What are the java implementations to support distributed transactions any example links?

XA / JTA ?

How does distributed transactions supported in EJB3 , Spring , Hibernate . which technological API are good options in java to support distributed transactions?


what are non distributed transactions java technologies , when we use those?


Many thanks in advance to all

Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 16695
    
  19


Please CarefullyChooseOneForum. Your other topic has been deleted.

Thanks


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Ranganathan Kaliyur Mannar
Bartender

Joined: Oct 16, 2003
Posts: 927
    
    2

XA is the general specification for distributed transactions(DT). This is not tied to any technology or language.
JTA is the implementation (actually specification) developed to support DTs in Java. A DT can involve more than one "database" or one database + another resource (say JMS).

A normal JDBC driver cannot participate in a DT, whereas an XA JDBC driver can. So, for a same database, depending on the driver this can change.

In a JEE app, you can configure normal DataSource or XADataSource for the source to participate in a DT. For programmatic JTA, servlets can do a jndi lookup for UserTransaction and use it.
EJBs support declarative transaction support via annotations.

I don't know much about Spring and Hibernate. But you can have JPA EntityManager participate in DT.

This link has some nice explanation about XA.


Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: distributed transactions
 
Similar Threads
To be J2EE/EJB or not?
Connecting to multiple databases using different jdbc drivers
Distributed transactions
mysql autocommit
Distributed java