Skip navigation links

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09


weblogic.transaction.nonxa
Interface NonXAResource


public interface NonXAResource

This interface is provided to easily integrate resources that do not support the javax.transaction.xa.XAResource interface with the WL transaction manager. The transaction manager supports a variation of the Last Agent two-phase commit optimization that allows a non-XA resource to participate in a distributed transaction. The protocol issues a one-phase commit to the non-XA resource and uses the result of the operation to base the commit decision for the transaction.

The underlying resource must have local transaction semantics and support commit and rollback operations. Examples of such resources include non-XA JDBC drivers, JMS providers, and Connectors.


Method Summary
abstract  void commit(Xid xid, boolean onePhase)
          Issues a one-phase commit on the resource connection associated with the transaction represented by the xid argument.
abstract  boolean isSameRM(NonXAResource nxar)
          Returns true if the two NonXAResource instances represent the same logical resource.
abstract  void rollback(Xid xid)
          Issues a rollback operation on the resource connection associated with the transaction represented by thee xid argument.

 

Method Detail

commit

void commit(Xid xid,
            boolean onePhase)
            throws NonXAException
Issues a one-phase commit on the resource connection associated with the transaction represented by the xid argument.
Throws:
NonXAException

rollback

void rollback(Xid xid)
              throws NonXAException
Issues a rollback operation on the resource connection associated with the transaction represented by thee xid argument.
Throws:
NonXAException

isSameRM

boolean isSameRM(NonXAResource nxar)
                 throws NonXAException
Returns true if the two NonXAResource instances represent the same logical resource.
Throws:
NonXAException

Skip navigation links

Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09