getLog().debug("OK");
getLog().debug(++test+"- "+"Looking up the home BMTStateful...");
BMTStatelessHome bmtSLHome = (BMTStatelessHome) ctx.lookup("BMTStateless");
if (bmtSLHome != null ) getLog().debug("ok");
getLog().debug(++test+"- "+"Calling create on BMTStatelessHome...");
BMTStateless bmtSL = bmtSLHome.create();
getLog().debug("OK");
getLog().debug(++test+"- "+"Can the bean access its UserTransaction");
getLog().debug(bmtSL.txExists());
getLog().debug(++test+"- "+"Testing commit on UserTransaction");
getLog().debug(bmtSL.txCommit());
getLog().debug(++test+"- "+"Testing rollback on UserTransaction");
getLog().debug(bmtSL.txRollback());
getLog().debug(++test+"- "+"Beginning a transaction (container should throw an exception)...");
try {
getLog().debug(bmtSL.txBegin());
fail("bmtSL.txBegin() did not fail");
} catch (RemoteException e) {
getLog().debug(" ... OK, exception message: "+ e.getMessage());
}