Package org.jboss.test.sessionsync.interfaces

Examples of org.jboss.test.sessionsync.interfaces.ActionExecutor


    * @throws Exception
    */
   public void testBeforeCompletion() throws Exception
   {
      ActionExecutorHome executorHome = (ActionExecutorHome) getInitialContext().lookup("ActionExecutorBean");
      ActionExecutor executor = executorHome.create();

      StatefulSessionHome sessionHome = (StatefulSessionHome) getInitialContext().lookup("StatefulSessionBean");
      final StatefulSession session = sessionHome.create();
      try
      {

         assertEquals("after-begin", executor.execute(new GetAfterBeginEntryAction(session.getHandle())));
         assertEquals("before-completion", executor.execute(new GetBeforeCompletionEntryAction(session.getHandle())));
         assertEquals("after-completion", executor.execute(new GetAfterCompletionEntryAction(session.getHandle())));
      }
      finally
      {
         if(session != null)
            session.remove();
View Full Code Here

TOP

Related Classes of org.jboss.test.sessionsync.interfaces.ActionExecutor

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.