File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes XATransaction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "XATransaction" Watch "XATransaction" New topic


Luciano A. Pozzo
Ranch Hand

Joined: Jun 20, 2005
Posts: 112

How can I enable XATransaction on my application?

Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
Your server documentation will tell you about XA drivers, connection pool and data source configurations. Also, the XA resources themselves need to be XA-enabled.

SCJP 1.4, SCWCD 1.3, SCBCD 1.3
Luciano A. Pozzo
Ranch Hand

Joined: Jun 20, 2005
Posts: 112
Do you have some example?
[ March 09, 2006: Message edited by: Luciano A. Pozzo ]
Rajesh Pandey Rajesh Pandey

Joined: Mar 12, 2006
Posts: 24
Dear Freind

You can use transaction in application two way first through Declarative which we declare & container hanle it as we will declare it second way is programatical in which programmer have total contole for it & programmer implement sessionsynchronisation interface with bean class & also declare command such as commit abort after commit,beforecommit etc

Rajesh Pandey
Freelance Software Developer
india Delhi
Andreas Schaefer
Ranch Hand

Joined: Feb 13, 2006
Posts: 63
Per se there is not need to enable XA Transaction in your J2EE application but what you need to do is to make sure that the connection factories (JDBC data sources, JMS connection factories etc) are XA enabled and configured that way.
Then you have to decide if you use CMT (declarative) or BMT (managed by the bean) transaction handling but that does not influence if XA is used or not.
Also make sure that you use the right connection factories. For example JBoss has XA Connection Factories for JMS even though they do not participate in the XA trasnaction management of JBoss (make sure you use JmsXA found on the 'java:' namespace).

I agree. Here's the link:
subject: XATransaction
It's not a secret anymore!