• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

distributed transactions

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

 
author
Posts: 23909
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Please CarefullyChooseOneForum. Your other topic has been deleted.

Thanks
 
Bartender
Posts: 1104
10
Netbeans IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic