Examples of resetCallCount()


Examples of org.jboss.test.txtimer.interfaces.TimerSession.resetCallCount()

      assertEquals("unexpected handle count", 0, timerHandles.size());

      InitialContext iniCtx = getInitialContext();
      TimerSessionHome home = (TimerSessionHome)iniCtx.lookup(TimerSessionHome.JNDI_NAME);
      TimerSession session = home.create();
      session.resetCallCount();
      try
      {
         // insert a timer into the db
         ObjectName oname = ObjectNameFactory.create("jboss.j2ee:jndiName=test/txtimer/TimerSession,service=EJB");
         TimedObjectId targetId = new TimedObjectId(oname);
View Full Code Here

Examples of org.jboss.test.txtimer.interfaces.TimerSession.resetCallCount()

         super.deploy("ejb-txtimer.jar");
        
         InitialContext iniCtx = getInitialContext();
         TimerSessionHome home = (TimerSessionHome)iniCtx.lookup(TimerSessionHome.JNDI_NAME);
         TimerSession session = home.create();
         session.resetCallCount();
  
         // create a timer to expire in 2sec
         session.createTimer(2000, 0, new SimpleInfo("NonScoped"));
           
         // the timer shouldn't have expired yet
View Full Code Here

Examples of org.jboss.test.txtimer.interfaces.TimerSession.resetCallCount()

         super.deploy("ejb-txtimer-scoped.jar");
        
         InitialContext iniCtx = getInitialContext();
         TimerSessionHome home = (TimerSessionHome)iniCtx.lookup(TimerSessionHome.JNDI_NAME);
         TimerSession session = home.create();
         session.resetCallCount();
  
         // create a timer to expire in 2sec, with a SimpleInfo serializable
         session.createTimer(2000, 0, new SimpleInfo("ScopedTest"));
           
         // the timer shouldn't have expired yet
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.