Package org.jboss.test.classloader.scoping.transaction.interfaces

Examples of org.jboss.test.classloader.scoping.transaction.interfaces.TestSession


         Transaction tx = getTransaction();
         if (tx == null)
            throw new RuntimeException("No transaction");
         String id = tx.toString();

         TestSession next = (TestSession) context.getEJBObject();
         int hashCode = next.invokeNext(id);
         if (hashCode != getConnectionHashCode())
            throw new RuntimeException("Not using same connection - assumes track by connection");
      }
      catch (Exception e)
      {
View Full Code Here


   public void testScopedTransaction() throws Exception
   {
      getLog().debug("+++ testScopedTransaction start");

      TestSessionHome home = (TestSessionHome) getInitialContext().lookup("ScopedTxTestSession");
      TestSession session = home.create();
      session.runTest();

      getLog().debug("+++ testScopedTransaction end");
   }
View Full Code Here

TOP

Related Classes of org.jboss.test.classloader.scoping.transaction.interfaces.TestSession

Copyright © 2018 www.massapicom. 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.