Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

XADataswource  RSS feed

 
shiva shankar
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone explain me when,why and how to use XADatasource?
In what way it is related to two phase commit?
Is two phase commit is not possible with normal Datasource?
 
ravi inguva
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
XADataSource is used when ur j2ee application wants to participate in distributed Transaction (two or more database) at that time ur driver should implement javax.sql.XADataSource interface to participate in the transaction to lead to ACID rules.
2 phase commit protocol is the protocol followed by the transaction manager(JTS) to keep the all resource managers in sync for commiting the transaction .
i have the explanation is enough to clarify ur question
 
yogendra babu
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What about XAConnection.?When to use XAConnection?
Distributed transaction is working with out using XAConnection.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!