Examples of access()


Examples of org.apache.catalina.Session.access()

      assertEquals("Session count correct", 1, managers[1].getActiveSessionCount());
      assertEquals("Local session count correct", 0, managers[1].getLocalActiveSessionCount());
     
      // Confirm a session timeout clears space
      sess = managers[0].findSession(id);
      sess.access();
      sess.setMaxInactiveInterval(1);       
      managers[0].storeSession(sess);     
      sess.endAccess();
     
      SessionTestUtil.sleepThread(1005);     
View Full Code Here

Examples of org.apache.catalina.Session.access()

         }
      }
     
      if (access)
      {
         sess.access();
         sess.getSession().setAttribute("test", "test");
        
         manager.storeSession(sess);
        
         sess.endAccess();
View Full Code Here

Examples of org.apache.catalina.Session.access()

      //    Shift to Manager interface when we simulate Tomcat
      Manager mgr = manager;
      Session sess = mgr.findSession(id);
      assertNotNull("session exists", sess);
     
      sess.access();
      sess.getSession().setAttribute("test", "test");
     
      manager.storeSession(sess);
     
      sess.endAccess();
View Full Code Here

Examples of org.apache.catalina.Session.access()

         }
      }
     
      if (access)
      {
         sess.access();
         sess.getSession().setAttribute("test", "test");
        
         dspm.storeSession(sess);
        
         sess.endAccess();
View Full Code Here

Examples of org.apache.catalina.Session.access()

      //    Shift to Manager interface when we simulate Tomcat
      Manager mgr = dspm;
      Session sess = mgr.findSession(id);
      assertNotNull("session exists", sess);
     
      sess.access();
      sess.getSession().setAttribute("test", "test");
     
      dspm.storeSession(sess);
     
      sess.endAccess();
View Full Code Here

Examples of org.apache.catalina.Session.access()

         }
      }
     
      if (access)
      {
         sess.access();
         sess.getSession().setAttribute("test", "test");
        
         manager.storeSession(sess);
        
         sess.endAccess();
View Full Code Here

Examples of org.apache.catalina.Session.access()

                if (localSession == null && create) {
                    localSession =
                        context.getManager().createSession(other.getId());
                }
                if (localSession != null) {
                    localSession.access();
                    session = localSession;
                    return session.getSession();
                }
            }
            return null;
View Full Code Here

Examples of org.apache.catalina.Session.access()

            synchronized(session){
                session = super.findSession(session.getIdInternal());
                if(session != null){
                   // To keep any external calling code from messing up the
                   // concurrency.
                   session.access();
                   session.endAccess();
                }
            }
        }
        if (session != null)
View Full Code Here

Examples of org.apache.catalina.Session.access()

                    add(session);
                    ((StandardSession)session).activate();
                    // endAccess() to ensure timeouts happen correctly.
                    // access() to keep access count correct or it will end up
                    // negative
                    session.access();
                    session.endAccess();
                }
            }
        }
View Full Code Here

Examples of org.apache.catalina.Session.access()

                    break;
                }
                case SessionMessage.EVT_SESSION_ACCESSED :{
                    Session session = findSession(msg.getSessionID());
                    if ( session != null ) {
                        session.access();
                        session.endAccess();
                    }
                    break;
                }
                default{
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.