Package org.jboss.web.tomcat.service.session

Examples of org.jboss.web.tomcat.service.session.JBossCacheManager.backgroundProcess()


      Fqn session2Fqn = Fqn.fromString(SessionTestUtil.getSessionFqn(warname, setHandler2.getSessionId()));
     
      // Overage the sessions
      Thread.sleep(3010);
      // Try to force out the overaged sessions
      jbcm1.backgroundProcess();
      // Confirm they are still there
      // FIXME -- avoid direct cache operations
      assertNotNull(pojoCaches[1].getCache().get(session1Fqn, CacheHelper.VERSION_KEY));
      assertNotNull(pojoCaches[1].getCache().get(session2Fqn, CacheHelper.VERSION_KEY));
     
View Full Code Here


     
      // Sleep past the grace period
      Thread.sleep(2010);
      // The get restored a new fresh session with the first id, but the 2nd
      // one is still there and overaged. Try to force it out
      jbcm1.backgroundProcess();
      // FIXME -- avoid direct cache operations
      assertNull(pojoCaches[1].getCache().get(session2Fqn, CacheHelper.VERSION_KEY));
   }
  
   protected JBossCacheManager[] getCacheManagers(String warname, int maxInactive, int maxUnreplicated)
View Full Code Here

      jbcm0.storeSession(sess);     
      sess.endAccess();
     
      SessionTestUtil.sleepThread(1005);     
          
      jbcm1.backgroundProcess();
     
      assertEquals("Session count correct", 1, jbcm0.getActiveSessionCount());
      assertEquals("Local session count correct", 1, jbcm0.getLocalActiveSessionCount());     
      assertEquals("Session count correct", 0, jbcm1.getActiveSessionCount());
      assertEquals("Local session count correct", 0, jbcm1.getLocalActiveSessionCount());
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.