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

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


      // Failover request
      setHandler = new SetAttributesRequestHandler(getAttributeMap(), false);
      log.info("failover request");
      SessionTestUtil.invokeRequest(jbcm1, setHandler, sessionId);
     
      WeakReference<Session> session1A = new WeakReference<Session>(jbcm1.findSession(sessionId));
      SessionTestUtil.cleanupPipeline(jbcm1);
      assertNotNull(session1A.get());
      assertEquals(1, Attribute.attributeCount());
     
      // Passivate
View Full Code Here


      // Reactivate
      BasicRequestHandler getHandler = new BasicRequestHandler(KEYS, false);
      log.info("activate node 1");
      SessionTestUtil.invokeRequest(jbcm1, getHandler, sessionId);
     
      WeakReference<Session> session1B = new WeakReference<Session>(jbcm1.findSession(sessionId));
      SessionTestUtil.cleanupPipeline(jbcm1);
      assertNotNull(session1B.get());
      assertEquals(1, Attribute.attributeCount());     
     
      // Fail back
View Full Code Here

      log.info("fail over request");
      SessionTestUtil.invokeRequest(jbcm1, setHandler, sessionId);
      assertNotNull(setHandler.getCheckedAttributes().get(KEY));
      assertEquals(Attribute.COUNT -1, ((Attribute) setHandler.getCheckedAttributes().get(KEY)).getCount());
     
      WeakReference<Session> session1A = new WeakReference<Session>(jbcm1.findSession(sessionId));
      SessionTestUtil.cleanupPipeline(jbcm1);
     
      System.gc();
      System.runFinalization();
      assertNotNull(session1A.get());
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.