Examples of createSession()


Examples of anvil.session.SessionContainer.createSession()

  public Session createSession()
  {
    SessionContainer container = getZone().getSessionContainer();
    if (container != null) {
      SessionPreferences prefs = getZone().getSessionPreferences();
      return container.createSession(prefs.getLifetime(), prefs.getTimeout());
    } else {
      return null;
    }
  }
 
View Full Code Here

Examples of com.caucho.server.session.SessionManager.createSession()

    // server must share the same cookie
    //
    // But, if the session group doesn't match, then create a new
    // session.

    session = manager.createSession(id, now, this,
                                    isRequestedSessionIdFromCookie());

    if (session != null)
      setHasCookie();
View Full Code Here

Examples of com.nokia.dempsy.cluster.ClusterInfoSessionFactory.createSession()

      ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
            "testDempsy/Dempsy.xml", "testDempsy/ClusterInfo-LocalActx.xml", "testDempsy/Serializer-KryoActx.xml",
            "testDempsy/Transport-PassthroughActx.xml", "testDempsy/SimpleMultistageApplicationActx.xml" );
      Dempsy dempsy = (Dempsy)context.getBean("dempsy");
      ClusterInfoSessionFactory factory = dempsy.getClusterSessionFactory();
      ClusterInfoSession session = factory.createSession();
      ClusterId curCluster = new ClusterId("test-app", "test-cluster1");
      TestUtils.createClusterLevel(curCluster, session);
      session.setData(curCluster.asPath(), new DecentralizedRoutingStrategy.DefaultRouterClusterInfo(20,2));
      session.stop();
      dempsy.stop();
View Full Code Here

Examples of com.nokia.dempsy.cluster.invm.LocalClusterSessionFactory.createSession()

      cd.setMessageProcessorPrototype(new GoodTestMp());
      app.add(cd);
      app.initialize();
     
      LocalClusterSessionFactory mpfactory = new LocalClusterSessionFactory();
      ClusterInfoSession session = mpfactory.createSession();
     
      TestUtils.createClusterLevel(clusterId, session);

      // fake the inbound side setup
      inbound = strategy.createInbound(session,clusterId,
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.data.handlers.SessionHandler.createSession()

        Object obj = new Object();
   
        SessionHandler handler = (SessionHandler)
                      pr.getHandler(PacketType.CREATE_SESSION);
   
        return handler.createSession(ackType, obj.toString(), con,
             false);
     }

     /**
      * Destroy a session
View Full Code Here

Examples of com.sun.xml.ws.runtime.dev.SessionManager.createSession()

     */
    static Session startSession(WSEndpoint endpoint, String sessionId) {
        SessionManager manager = SessionManager.getSessionManager(endpoint,null);
        Session session = manager.getSession(sessionId);
        if (session == null) {
            session = manager.createSession(sessionId);
        }

        return session;
    }

View Full Code Here

Examples of de.javakaffee.web.msm.MemcachedSessionService.SessionManager.createSession()

        final SessionManager manager = _tomcat1.getManager();
        manager.setMaxInactiveInterval( 5 );
        manager.setSticky( true );
        final SessionIdFormat sessionIdFormat = new SessionIdFormat();

        final Session session = manager.createSession( null );
        assertNull( sessionIdFormat.extractMemcachedId( session.getId() ) );

        _daemon.start();

        // Wait so that the daemon will be available and the client can reconnect (async get didn't do the trick)
View Full Code Here

Examples of edu.wpi.cs.wpisuitetng.SessionManager.createSession()

    ManagerLayer manager = ManagerLayer.getInstance();
    UserManager users = manager.getUsers();
    SessionManager sessions = manager.getSessions();
    ProjectManager projects = manager.getProjects();
   
    String originalSsid = sessions.createSession(u2);
    Session originalSession = sessions.getSession(originalSsid);
   
    String projectId = "proj1";
    Project p = new Project("wpisuite", projectId);
   
View Full Code Here

Examples of io.undertow.server.session.SessionManager.createSession()

                    originalServletContext.getSession(originalServletContext, exchange, true);
                } else if (existing != null) {
                    c.clearSession(exchange, existing);
                }

                final Session newSession = sessionManager.createSession(exchange, c);
                httpSession = SecurityActions.forSession(newSession, this, true);
                exchange.putAttachment(sessionAttachmentKey, httpSession);
            }
        }
        return httpSession;
View Full Code Here

Examples of jSimMacs.logic.handler.SSHDataHandler.createSession()

  }

  private Session startProcess(List<String> commands) throws IOException {
    String command = ToolBox.createCommandString(commands);
    SSHDataHandler dataHandler = getHandler();
    Session sess = dataHandler.createSession();
    if (sess == null)
      throw new IOException("Session corrupt");
    sess.execCommand(command);
    return sess;
  }
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.