Examples of BMTStatefulHome


Examples of org.jboss.test.testbean.interfaces.BMTStatefulHome

         getLog().debug("=========================================");
         getLog().debug("");
         ;

         getLog().debug(++test+"- "+"Looking up the home BMTStateful...");
         BMTStatefulHome bmtSFHome = (BMTStatefulHome) ctx.lookup("BMTStateful");

         if (bmtSFHome != null ) getLog().debug("ok");

         getLog().debug(++test+"- "+"Calling create on BMTStatefulHome...");

         BMTStateful bmtSF = bmtSFHome.create();

         getLog().debug(++test+"- "+"Calling create(anything) on BMTStatefulHome...");

         bmtSFHome.create("coca");
         getLog().debug("OK");
         getLog().debug(++test+"- "+"Can the bean access its UserTransaction");
         getLog().debug(bmtSF.txExists());
         getLog().debug(++test+"- "+"Testing commit on UserTransaction");
         getLog().debug(bmtSF.txCommit());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.