Examples of SessionManager


Examples of org.apache.cocoon.webapps.session.components.SessionManager

            } else {
                authenticationFragment.appendChild(doc.importNode(data, true));
            }
           
            // now set this information in the temporary context
            SessionManager sessionManager = null;
            try {
                sessionManager = (SessionManager) this.manager.lookup( SessionManager.ROLE );
                SessionContext temp = sessionManager.getContext( SessionConstants.TEMPORARY_CONTEXT );
                temp.appendXML("/", authenticationFragment);
            } catch ( ServiceException se ) {
                throw new ProcessingException("Unable to lookup session manager.", se);
            } finally {
                this.manager.release( sessionManager );
View Full Code Here

Examples of org.apache.geronimo.clustering.SessionManager

    public synchronized void setListener(CacheListener<Instance> listener) {
        this.listener = listener;
    }

    public SessionManager getSessionManager(Object deploymentId) {
        SessionManager sessionManager = sessionManagersById.get(deploymentId);
        if (sessionManager == null) {
            throw new IllegalStateException("No SessionManager registered for deployment [" + deploymentId + "]");
        }
        return sessionManager;
    }
View Full Code Here

Examples of org.apache.hive.service.cli.session.SessionManager

  }

  @Override
  public synchronized void init(HiveConf hiveConf) {
    this.hiveConf = hiveConf;
    sessionManager = new SessionManager(hiveServer2);
    addService(sessionManager);
    //  If the hadoop cluster is secure, do a kerberos login for the service from the keytab
    if (ShimLoader.getHadoopShims().isSecurityEnabled()) {
      try {
        HiveAuthFactory.loginFromKeytab(hiveConf);
View Full Code Here

Examples of org.apache.ode.daohib.SessionManager

        if (System.getProperty("ode.connection.isolation") != null) {
            String level = System.getProperty("ode.connection.isolation", "2");
            properties.put(Environment.ISOLATION, level);
        }       

        SessionManager sm = new SessionManager(properties, _ds, _tm);
        _sessionManager = sm;
    }
View Full Code Here

Examples of org.apache.shiro.session.mgt.SessionManager

        }
        boolean recreate = this.sessionMode == null || !this.sessionMode.equals(mode);
        this.sessionMode = mode;
        if (recreate) {
            LifecycleUtils.destroy(getSessionManager());
            SessionManager sessionManager = createSessionManager(mode);
            setSessionManager(sessionManager);
        }
    }
View Full Code Here

Examples of org.apache.stanbol.ontologymanager.servicesapi.session.SessionManager

        /*
         * We have to do it like this because we cannot make this class a Component and reference ONManager
         * and SessionManager, otherwise an activation cycle will occur.
         */
        ScopeManager scopeManager = ScopeManagerImpl.get(); // FIXME get rid of this.
        SessionManager sessionManager = SessionManagerImpl.get();
        String prefix_scope = _NS_STANBOL_INTERNAL + Scope.shortName + "/", prefix_session = _NS_STANBOL_INTERNAL
                                                                                             + Session.shortName
                                                                                             + "/";

        // TODO check when not explicitly typed.
        SpaceType spaceType;
        if (meta.contains(new TripleImpl(candidate, RDF.type, SPACE_URIREF))) {
            Resource rScope;
            Iterator<Triple> parentSeeker = meta.filter(candidate, IS_SPACE_CORE_OF_URIREF, null);
            if (parentSeeker.hasNext()) {
                rScope = parentSeeker.next().getObject();
                spaceType = SpaceType.CORE;
            } else {
                parentSeeker = meta.filter(candidate, IS_SPACE_CUSTOM_OF_URIREF, null);
                if (parentSeeker.hasNext()) {
                    rScope = parentSeeker.next().getObject();
                    spaceType = SpaceType.CUSTOM;
                } else {
                    parentSeeker = meta.filter(null, HAS_SPACE_CORE_URIREF, candidate);
                    if (parentSeeker.hasNext()) {
                        rScope = parentSeeker.next().getSubject();
                        spaceType = SpaceType.CORE;
                    } else {
                        parentSeeker = meta.filter(null, HAS_SPACE_CUSTOM_URIREF, candidate);
                        if (parentSeeker.hasNext()) {
                            rScope = parentSeeker.next().getSubject();
                            spaceType = SpaceType.CUSTOM;
                        } else throw new InvalidMetaGraphStateException("Ontology space " + candidate
                                                                        + " does not declare a parent scope.");
                    }
                }
            }
            if (!(rScope instanceof UriRef)) throw new InvalidMetaGraphStateException(
                    rScope + " is not a legal scope identifier.");
            String scopeId = ((UriRef) rScope).getUnicodeString().substring(prefix_scope.length());
            Scope scope = scopeManager.getScope(scopeId);
            switch (spaceType) {
                case CORE:
                    handles.add(scope.getCoreSpace());
                    break;
                case CUSTOM:
                    handles.add(scope.getCustomSpace());
                    break;
            }
        } else if (meta.contains(new TripleImpl(candidate, RDF.type, SESSION_URIREF))) {
            String sessionId = ((UriRef) candidate).getUnicodeString().substring(prefix_session.length());
            handles.add(sessionManager.getSession(sessionId));
        }
    }
View Full Code Here

Examples of org.apache.tajo.master.session.SessionManager

      catalogServer = new CatalogServer(initBuiltinFunctions());
      addIfService(catalogServer);
      catalog = new LocalCatalogWrapper(catalogServer, systemConf);

      sessionManager = new SessionManager(dispatcher);
      addIfService(sessionManager);

      globalEngine = new GlobalEngine(context);
      addIfService(globalEngine);
View Full Code Here

Examples of org.browsermob.proxy.jetty.jetty.servlet.SessionManager

    }

    /* ------------------------------------------------------------ */
    public ObjectName getSessionManager()
    {
        SessionManager sm=_servletHandler.getSessionManager();
        if (sm==null)
            return null;
        ObjectName[] on=getComponentMBeans(new Object[]{sm},null);
        return on[0];
    }
View Full Code Here

Examples of org.cipango.server.session.SessionManager

    if (!_parallel && _actives > 0)
      return;
   
    // Patch TMP fix for CIPANGO 8
    CallSession callSession = _tx.getRequest().getCallSession();
    SessionManager cm = callSession.getServer().getSessionManager();
     
      SessionScope work = cm.openScope(callSession);
      try
      {
      // End patch
        while (LazyList.size(_targets) > 0)
            {
View Full Code Here

Examples of org.cipango.server.session.SessionManager

   
    if (_sipThreadPool == null)
      setSipThreadPool(new QueuedThreadPool());
   
    if (_sessionManager == null)
      setSessionManager(new SessionManager());
   
    try
    {
      super.doStart();
    }
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.