Examples of findSession()


Examples of org.apache.catalina.ha.ClusterManager.findSession()

      while (i.hasNext()) {
    String key = (String) i.next();
    ClusterManager mgr = (ClusterManager) managers.get(key);
    if (mgr != null) {
        try {
      session = mgr.findSession(sessionId);
        } catch (IOException io) {
      log.error("Session doesn't exist:" + io);
        }
        return session;
    } else {
View Full Code Here

Examples of org.apache.catalina.ha.ClusterManager.findSession()

      }
  } else {
      ClusterManager mgr = (ClusterManager) managers.get(ctxname);
      if (mgr != null) {
    try {
        session = mgr.findSession(sessionId);
    } catch (IOException io) {
        log.error("Session doesn't exist:" + io);
    }
    return session;
      } else if (log.isErrorEnabled())
View Full Code Here

Examples of org.apache.catalina.session.PersistentManagerBase.findSession()

        try {
            //if failover occurred - cached session will be removed
            //and session retrieved from store (if it exists)
            if(forLock) {
                //for lock if failover, purge cache and force re-load
                sess = pmb.findSession(id, hasFailoverOccurred(request));
                resetSession((HttpServletRequest)servletReq, sess);
            } else {
                //for unlock do not purge cache and force re-load
                sess = pmb.findSession(id, false);
            }
View Full Code Here

Examples of org.huihoo.willow.session.SessionManager.findSession()

  public boolean accept(String sessionID, SerialWork workItem)
    throws WorkflowException, RemoteException
  {
    Context cotext=(Context)this.workflowService;
    SessionManager manager=cotext.getEngine().getSessionManager();
    WorkflowSession session=manager.findSession(sessionID);
   
    WorkflowProcess workflowProcess=workflowService.findWorkflowPackage(workItem.getPackageID()).getMainProcess();
    WorkflowCase workflowCase=workflowService.getCaseDatabase().findWorkflowCase(session,workflowProcess,workItem.getCaseID());
    WorkflowWork workflowWork=workflowService.getCaseDatabase().findWorkflowWork(session,workflowProcess,workflowCase,workItem.getUUID());   
    return getWrappedObject().accept(session,workflowWork);
View Full Code Here

Examples of org.jboss.as.web.session.mocks.MockClusteredSessionManager.findSession()

        jvmRouteValve.invoke(req, res);

        assertSame(req, mockValve.getInvokedRequest());
        assertSame(res, mockValve.getInvokedResponse());
        assertEquals(null, mgr.findSession("123.node1"));
        assertEquals(null, mgr.getNewCookieIdSession());
    }

    @Test
    public void testNoSessionFromURL() throws Exception {
View Full Code Here

Examples of org.jboss.as.web.session.mocks.MockClusteredSessionManager.findSession()

        jvmRouteValve.invoke(req, res);

        assertSame(req, mockValve.getInvokedRequest());
        assertSame(res, mockValve.getInvokedResponse());
        assertEquals(null, mgr.findSession(NON_FAILOVER_ID));
        assertEquals(null, mgr.getNewCookieIdSession());
    }

    @Test
    public void testFailoverNoSession() throws Exception {
View Full Code Here

Examples of org.jboss.test.cluster.web.jvmroute.MockJBossManager.findSession()

     
      jvmRouteValve.invoke(req, res);
     
      assertSame(req, mockValve.getInvokedRequest());
      assertSame(res, mockValve.getInvokedResponse());
      assertEquals(null, mgr.findSession("123.node1"));
      assertEquals(null, mgr.getNewCookieIdSession());     
   }
  
   public void testNoSessionFromURL() throws Exception
   {
View Full Code Here

Examples of org.jboss.test.cluster.web.mocks.MockClusteredManager.findSession()

     
      jvmRouteValve.invoke(req, res);
     
      assertSame(req, mockValve.getInvokedRequest());
      assertSame(res, mockValve.getInvokedResponse());
      assertEquals(null, mgr.findSession("123.node1"));
      assertEquals(null, mgr.getNewCookieIdSession());     
   }
  
   public void testNoSessionFromURL() throws Exception
   {
View Full Code Here

Examples of org.jboss.test.cluster.web.mocks.MockClusteredManager.findSession()

     
      jvmRouteValve.invoke(req, res);
     
      assertSame(req, mockValve.getInvokedRequest());
      assertSame(res, mockValve.getInvokedResponse());
      assertEquals(null, mgr.findSession(NON_FAILOVER_ID));
      assertEquals(null, mgr.getNewCookieIdSession());     
   }
  
   public void testFailoverNoSession() throws Exception
   {
View Full Code Here

Examples of org.jboss.test.cluster.web.mocks.MockClusteredManager.findSession()

     
      jvmRouteValve.invoke(req, res);
     
      assertSame(req, mockValve.getInvokedRequest());
      assertSame(res, mockValve.getInvokedResponse());
      assertEquals(null, mgr.findSession(NON_FAILOVER_ID));
      assertEquals(null, mgr.findSession("123.node2"));
      assertEquals(null, mgr.getNewCookieIdSession());     
   }
  
   public void testNoSessionNoRequestedSession() throws Exception
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.