com.sun.jts.jta
Interface NativeXAResource

All Superinterfaces:
XAResource

public interface NativeXAResource
extends XAResource

This interface extends JTA XAResource interface and defines new methods for thread association support and resource initialization.


Field Summary
 
Fields inherited from interface javax.transaction.xa.XAResource
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY
 
Method Summary
 void close()
          Closes the RM for the calling thread (xa_close).
 void enlistConnectionInXA()
          enlist the JDBC connection in XA (needed to support MSSQLServer) this should be called once per connection per transaction
 boolean isInitialized(java.lang.Thread thread)
          checks if the thread has opened (xa_open) the RM atleast once.
 void open()
          Opens the RM for the calling thread (xa_open).
 
Methods inherited from interface javax.transaction.xa.XAResource
commit, end, forget, getTransactionTimeout, isSameRM, prepare, recover, rollback, setTransactionTimeout, start
 

Method Detail

open

void open()
          throws XAException
Opens the RM for the calling thread (xa_open).

Throws:
XAException

close

void close()
           throws XAException
Closes the RM for the calling thread (xa_close).

Throws:
XAException

isInitialized

boolean isInitialized(java.lang.Thread thread)
checks if the thread has opened (xa_open) the RM atleast once.

Parameters:
thread - the thread to be checked for resource initialization.
Returns:
true if the thread has opened the resource (RM) atleast once.

enlistConnectionInXA

void enlistConnectionInXA()
enlist the JDBC connection in XA (needed to support MSSQLServer) this should be called once per connection per transaction



Copyright © 2012 GlassFish Community. All Rights Reserved.