java - XA transaction for two phase commit -
Hi,
If two resources are included in a transaction then the XA Transition setting should be weblogic The server should be enabled then the XA drivers should be turned down. This is an alternative way of transacting two resources without enabling the XA transaction
< P> Yes, you can use global transaction emulation. Weblogic has two modes:
- Logging Previous Resources - Weblogic creates a table in all your data sources and writes transaction data in this table. This is a preference option.
From the official document:
With this option, connection is used in transaction branch & gt; Transaction is processed as the final resource and in the form of a local transaction. & Gt; Record for two-step commit (2 pc) transactions is put into a table on record resources, and & gt; The result determines the success or failure of the prepared phase of the global transaction. & Gt; This option offers some performance benefits and two-step ambulatory & gt; Provides more data protection than commits, but there are some limitations in it.
See
- simulation two-step command - Transaction branch always returns "success" while preparing the steps. Select this option if your app can tolerate predictable conditions.
See for more information.
I like the LLR option, but if you work with legacy DB and you do not have a table grant, you should use two-step committed emulation.
Comments
Post a Comment