This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

XADataswource

 
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.
 
Don't mess with me you fool! I'm cooking with gas! Here, read this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!