testXAException
5859606162636465666768
{ XAExceptionSessionHome xh = (XAExceptionSessionHome)getInitialContext().lookup("test/XAExceptionSessionHome"); XAExceptionSession x = xh.create(); try { x.testXAExceptionToTransactionRolledbackException(); } catch (TransactionRolledbackException tre) { getLog().info("testXAExceptionToRollbackException passed"); return;
7374757677787980818283
XAExceptionSessionHome xh = (XAExceptionSessionHome) new InitialContext() .lookup("test/XAExceptionSessionHome"); XAExceptionSession x = xh.create(); try { x.testXAExceptionToTransactionRolledbackException(); } catch (TransactionRolledbackException tre) { log.info("Test worked"); return;