{
XAExceptionSessionHome xh = (XAExceptionSessionHome)getInitialContext().lookup("test/XAExceptionSessionHome");
XAExceptionSession x = xh.create();
try
{
x.simulateFactoryError("createManagedConnectionResource", 10);
}
finally
{
flushConnections();
}