Package org.jboss.test.cluster.ejb3.stateful.nested.base.xpc

Examples of org.jboss.test.cluster.ejb3.stateful.nested.base.xpc.ShoppingCart.reset()


              +"Looking up testStateful...");
      StatefulRemote remote = (StatefulRemote) ctx.lookup("testStateful/remote");

      int invCount = 0;
     
      remote.reset();
      invCount++;
      remote.setState("hello");
      invCount++;
     
      sleep_(11100);
View Full Code Here


      getLog().debug("==================================");
      getLog().debug(++PassivationUnitTestCase.test +"- "
              +"Looking up testIgnoreReplicationStateful...");
      StatefulRemote remote = (StatefulRemote) ctx.lookup("testIgnoreReplicationStateful/remote");

      remote.reset();
      remote.setState("hello");
     
      sleep_(11100);
     
      assertEquals("hello", remote.getState());     
View Full Code Here

      getLog().debug(++PassivationUnitTestCase.test +"- "
              +"Looking up testOptimizedStateful...");
      StatefulRemote remote = (StatefulRemote) ctx.lookup("testOptimizedStateful/remote");

      int invCount = 0;
      remote.reset();
      invCount++;
      remote.setState("hello");
      invCount++;
     
      sleep_(10100);
View Full Code Here

      getLog().debug("==================================");
      getLog().debug(++PassivationUnitTestCase.test +"- "
              +"Looking up testStateful...");
      StatefulRemote stateful = (StatefulRemote) ctx.lookup("testStateful/remote");

      stateful.reset();
     
      stateful.setName("The Code");
      NodeAnswer node1 = stateful.getNodeState();
      getLog ().debug ("Node 1 ID: " +node1);
View Full Code Here

      }
     
      assertFalse("Monitor and SFSB in same VM", vmMatch);
     
      // Reset the parent to initialize all the beans
      parent.reset();
     
      // Monitor the parent
      monitor.monitor(parent);
     
      // Reset the parent to clean things up
View Full Code Here

     
      // Monitor the parent
      monitor.monitor(parent);
     
      // Reset the parent to clean things up
      parent.reset();
      parentInv++;
      nestedInv++;
     
      NestedStateful nested = (NestedStateful) parent.getNested();
      parentInv++;
View Full Code Here

      }
     
      Assert.assertTrue("Monitor and SFSB in same VM", vmMatch);
     
      // Reset the parent to initialize all the beans
      parent.reset();
     
      // Monitor the parent
      monitor.monitor(parent);
     
      // Reset the parent to clean things up
View Full Code Here

     
      // Monitor the parent
      monitor.monitor(parent);
     
      // Reset the parent to clean things up
      parent.reset();
      parentInv++;
      nestedInv++;
     
      NestedStateful nested = (NestedStateful) parent.getNested();
      parentInv++;
View Full Code Here

      Assert.assertTrue("Local nested and localDeepNested share a ref",
                        monitor.compareLocalNestedToLocalDeepNested(id));
     
      // Confirm this survives passivation/activation
     
      parent.reset();
     
      sleep(getSleepTime());
     
      // DeepContained beans ignore replication in their
      // activation/passivation counters, so we can test them
View Full Code Here

     
      // Tell the contained bean to get the customer
      cart.setContainedCustomer();
     
      // Clear the passivation counts
      cart.reset();
     
      sleep(getSleepTime()); // passivation  
     
      Assert.assertEquals("Contained bean was passivated", 1, monitor.getLocalNestedPassivations());
     
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.