Wednesday, April 16

what is xa and non xa ?


  • Parupalli Rajesh xa driver is for global transctions.it means all the transctions are successfully complted then that transcation hit into the database that is global.non xa drver for the local transctions it is check the step by step while perfoming the transction if u give any wrong input it directly go to the login page, if first step complted then it will move to the next step
    23 hours ago · Unlike · 4
  • Raja Sekhar thanku anna
  • Ram Ramanujan XA-Automatically supports the auto commit and auto rollback operation based on the transaction. Each time the transaction status will be validated. In Non XA-Driver the developer need to concentrate on the validation logic which is not available by default.

3 comments:

  1. XA transaction involves more than one resource managers (DBs), It ensures data integrity by coordinating single transactions accessing multiple relational databases. Or you can say it global transaction also.

    ReplyDelete
  2. An XA transaction, in the most general terms, is a "global transaction" that may span multiple resources. A non-XA transaction always involves just one resource.

    An XA transaction involves a coordinating transaction manager, with one or more databases (or other resources, like JMS) all involved in a single global transaction. Non-XA transactions have no transaction coordinator, and a single resource is doing all its transaction work itself (this is sometimes called local transactions).

    Most stuff in the world is non-XA - a Servlet or EJB or plain old JDBC in a Java application talking to a single database. XA gets involved when you want to work with multiple resources - 2 or more databases, a database and a JMS connection, all of those plus maybe a JCA resource - all in a single transaction. In this scenario, you'll have an app server like Websphere or Weblogic or JBoss acting as the Transaction Manager, and your various resources (Oracle, Sybase, IBM MQ JMS, SAP, whatever) acting as transaction resources. Your code can then update/delete/publish/whatever across the many resources. When you say "commit", the results are commited across all of the resources. When you say "rollback", _everything_ is rolled back across all resources.

    ReplyDelete
  3. Ever wanted to get free Instagram Followers?
    Did you know you can get them AUTOMATICALLY AND ABSOLUTELY FREE by registering on Add Me Fast?

    ReplyDelete