Examples of BMTStateful


Examples of org.jboss.test.testbean.interfaces.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());
         getLog().debug(++test+"- "+"Testing rollback on UserTransaction");
         getLog().debug(bmtSF.txRollback());
         getLog().debug(++test+"- "+"Beginning a transaction...");
         getLog().debug(bmtSF.txBegin());
         getLog().debug(++test+"- "+"Committing the transaction in another call...");
         getLog().debug(bmtSF.txEnd());
         getLog().debug(++test+"- "+"Creating a table for real db w/ tx test...");
         bmtSF.createTable();
         getLog().debug("OK, field value is:");
         getLog().debug(bmtSF.getDbField());
         getLog().debug(++test+"- "+"Updating the field in a transaction, commit...");
         bmtSF.dbCommit();
         getLog().debug("OK, field value is:");
         getLog().debug(bmtSF.getDbField());
         getLog().debug(++test+"- "+"Updating the field in a transaction, rollback...");
         bmtSF.dbRollback();
         getLog().debug("OK, field value is:");
         getLog().debug(bmtSF.getDbField());
         getLog().debug(++test+"- "+"Now dropping the table...");
         bmtSF.dropTable();
         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...");
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.