| org.objectweb.jonas.jtests.util.JTestCase org.objectweb.jonas.jtests.clients.jca15.F_xatransactionTest
F_xatransactionTest | public class F_xatransactionTest extends JTestCase (Code) | | F_xatransactionTests tests JOnAS Connection Architecture XA Transaction
|
Method Summary | |
public static void | main(String args) | protected void | setUp() | protected void | startUp(String testName) | public static Test | suite() | protected void | tearDown() | public void | testIsXAend1() At connection close, the application server performs "transactional" cleanup.
The application server dissociates the XAResource instance (corresponding
to the ManagedConnection "mc" instance) from the transaction manager.
The transaction manager calls XAResource.end(Xid, flag)
The ConnectionEvent is CLOSE_CONNECTION. | public void | testIsXAend2() At connection close, the application server performs "transactional" cleanup. | public void | testIsXaresource() The application server invokes the ManagedConnection.getXAResource method
to get the XAResource instance associated with the ManagedConnection instance. |
CLOSE_HANDLE | final public int CLOSE_HANDLE(Code) | | |
CLOSE_PHYSICAL | final public int CLOSE_PHYSICAL(Code) | | |
CloseType | public int CloseType(Code) | | |
F_xatransactionTest | public F_xatransactionTest(String name)(Code) | | |
setUp | protected void setUp()(Code) | | |
suite | public static Test suite()(Code) | | |
testIsXAend1 | public void testIsXAend1()(Code) | | At connection close, the application server performs "transactional" cleanup.
The application server dissociates the XAResource instance (corresponding
to the ManagedConnection "mc" instance) from the transaction manager.
The transaction manager calls XAResource.end(Xid, flag)
The ConnectionEvent is CLOSE_CONNECTION. This test verifies that application
server called TM which in turn called XAResource.end().
|
testIsXAend2 | public void testIsXAend2()(Code) | | At connection close, the application server performs "transactional" cleanup.
The application server dissociates the XAResource instance (corresponding
to the ManagedConnection "mc" instance) from the transaction manager.
The transaction manager calls XAResource.end(Xid, flag)
The ConnectionEvent is CONNECTION_ERROR_OCCURRED to force a physical close.
verifies mc.XAR reference is null
|
testIsXaresource | public void testIsXaresource()(Code) | | The application server invokes the ManagedConnection.getXAResource method
to get the XAResource instance associated with the ManagedConnection instance.
Then, application server calls the TM, which in turn calls the
XAResourceImpl.start() method.
This test verifies the existence of the instance, assigned Xid, and start()
|
|
|