getLog().debug(++test+"- "+"Looking up home for nextgen.TxSession...");
TxSessionHome txHome = (TxSessionHome) ctx.lookup("nextgen.TxSession");
if (txHome != null )getLog().debug("ok");
getLog().debug(++test+"- "+"Calling create on the home...");
TxSession txBean = null;
// Let's try to create the instance
try {
txBean = txHome.create();
} catch (Exception e) {
getLog().debug("Exception: ", e);
}
if (txBean!= null) getLog().debug("ok");
getLog().debug(++test+"- "+"calling supports... ");
getLog().debug(txBean.txSupports());
getLog().debug(++test+"- "+"calling required... ");
getLog().debug(txBean.txRequired());
getLog().debug(++test+"- "+"calling requiresNew... ");
getLog().debug(txBean.txRequiresNew());
getLog().debug(++test+"- "+"calling not supported... ");
getLog().debug(txBean.txNotSupported());
getLog().debug(++test+"- "+"calling mandatory (should get an exception)...");
try {
getLog().debug(txBean.txMandatory());
} catch (Exception e) {
getLog().debug("got Exception, ok");
}
getLog().debug(++test+"- "+"calling requiredToSupports... ");
getLog().debug(txBean.requiredToSupports());
getLog().debug(++test+"- "+"calling requiredToNotSupported... ");
getLog().debug(txBean.requiredToNotSupported());
getLog().debug(++test+"- "+"calling requiredToRequiresNew... ");
getLog().debug(txBean.requiredToRequiresNew());
getLog().debug("ok");
}