132133134135136137138139140141142
{ XAExceptionSessionHome xh = (XAExceptionSessionHome)getInitialContext().lookup("test/XAExceptionSessionHome"); XAExceptionSession x = xh.create(); try { x.simulateError("getConnectionResource", 10); } finally { flushConnections(); }
146147148149150151152153154155156
{ XAExceptionSessionHome xh = (XAExceptionSessionHome)getInitialContext().lookup("test/XAExceptionSessionHome"); XAExceptionSession x = xh.create(); try { x.simulateError("getConnectionRuntime", 10); } finally { flushConnections(); }