try
{
InitialContext ctx = new InitialContext();
Context enc = (Context) ctx.lookup("java:comp/env");
UnshareableConnectionStatefulLocalHome home = (UnshareableConnectionStatefulLocalHome) enc.lookup("local/UnshareableStateful");
UnshareableConnectionStatefulLocal stateful = home.create();
stateful.runTestPart1();
stateful.runTestPart2();
stateful.remove();
}
catch (Exception e)
{
throw new EJBException(e.toString());
}