Oracle Fusion Middleware
Oracle WebLogic Server API Reference
11g Release 1 (10.3.4)

Part Number E13941-04

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
 void commit(Xid xid, boolean onePhase)
          Issues a one-phase commit on the resource connection associated with the transaction represented by the xid argument.
 boolean isSameRM(NonXAResource nxar)
          Returns true if the two NonXAResource instances represent the same logical resource.
 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

Copyright 1996, 2010, 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
Oracle WebLogic Server API Reference
11g Release 1 (10.3.4)

Part Number E13941-04