Friends
What is XA data source and NonXA data source?
What does mean by XA?
Thanks
Selvaraj
-
XA Datasource and NonXA datasource (1 messages)
- Posted by: Majic Robot
- Posted on: March 17 2001 19:39 EST
Threaded Messages (1)
- XA Datasource and NonXA datasource by Stephen Davies on March 18 2001 21:45 EST
-
XA Datasource and NonXA datasource[ Go to top ]
- Posted by: Stephen Davies
- Posted on: March 18 2001 21:45 EST
- in response to Majic Robot
In theory a JDBC connection obtained from an XA datasource can participate in a distributed transaction. You want this feature if your application data is stored in multiple databases. Getting a connection from the XA Datasource guarantees that the connection will be registered with a transaction manager. When the transaction commits ALL resources will be committed or rolled back atomically.
If issuing JDBC calls from an EJB use the XA Datasource. If using JDBC from within a servlet then the non-XA datasource can be used.