Examples of ImplementsSessionSynchronizationRemoteBusiness


Examples of org.jboss.ejb3.core.test.ejbthree995.ImplementsSessionSynchronizationRemoteBusiness

      // Get JNDI Context
      Context context = new InitialContext();

      // Obtain
      ImplementsSessionSynchronizationRemoteBusiness sfsb = (ImplementsSessionSynchronizationRemoteBusiness) context
            .lookup(jndiName);

      // Check callbacks are reset
      this.assertCallbacksReset();

      // Invoke
      sfsb.call();

      // Check callbacks have been made exactly once
      this.assertCallsExpected(1);
     
      // Invoke again
      sfsb.call();

      // Check callbacks have been made exactly twice
      this.assertCallsExpected(2);     
     
      // Invoke again
      sfsb.call();

      // Check callbacks have been made exactly three times
      this.assertCallsExpected(3)

      // Reset
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.