Examples of createSession()


Examples of org.osgi.service.command.CommandProcessor.createSession()

    @Test
    public void testHelp() throws Exception {
        Thread.sleep(10000);

        CommandProcessor cp = getOsgiService(CommandProcessor.class);
        CommandSession cs = cp.createSession(System.in, System.out, System.err);
        cs.execute("osgi:list --help");
        cs.close();
    }

    @Test
View Full Code Here

Examples of org.serviceconnector.api.cln.SCSessionService.createSession()

      SCMessage msg = new SCMessage();
      msg.setSessionInfo("session-info"); // optional
      msg.setData("certificate or what so ever"); // optional
      SCMessageCallback cbk = new DemoSessionClientCallback(service); // callback on service!!
      SCMessage reply = service.createSession(10, msg, cbk); // create a session within 10 seconds
      Object body = reply.getData();

      String sid = service.getSessionId();

      SCMessage requestMsg = new SCMessage();
View Full Code Here

Examples of org.serviceconnector.server.CascadedSC.createSession()

    switch (abstractService.getType()) {
    case CASCADED_SESSION_SERVICE:
      CascadedSC cascadedSC = ((CascadedSessionService) abstractService).getCascadedSC();
      CommandCascCallback callback = new CommandCascCallback(request, response, responderCallback);
      cascadedSC.createSession(reqMessage, callback, oti);
      return;
    case CASCADED_FILE_SERVICE:
      cascadedSC = ((CascadedFileService) abstractService).getCascadedSC();
      callback = new CommandCascCallback(request, response, responderCallback);
      cascadedSC.createSession(reqMessage, callback, oti);
View Full Code Here

Examples of org.serviceconnector.server.StatefulServer.createSession()

      StatefulServer server = this.listOfServers.get(serverIndex);
      if (server.hasFreeSession()) {
        callback.setServer(server);
        server.addSession(session);
        try {
          server.createSession(msgToForward, callback, timeoutMillis);
        } catch (Exception e) {
          server.removeSession(session);
          callback.setServer(null);
          throw e;
        }
View Full Code Here

Examples of org.springmodules.jsr94.rulesource.DefaultRuleSource.createSession()

    }
    source.setRuleRuntime(ruleRuntime);
    source.afterPropertiesSet();

    try {
      source.createSession(BIND_URI + "-foo", null, RuleRuntime.STATELESS_SESSION_TYPE);
      fail("Ruleset at uri " + BIND_URI + "-foo exists!");
    }
    catch (RuleExecutionSetNotFoundException ex) {
      // expected
    }
View Full Code Here

Examples of org.teiid.dqp.service.SessionService.createSession()

    session.setUserName(userName);
    session.setApplicationName(applicationName);
    session.setSessionId(String.valueOf(1));
    session.setSessionToken(new SessionToken(1, userName));

    Mockito.stub(ssi.createSession(userName, null, applicationName,p, false, true)).toReturn(session);

    LogonImpl impl = new LogonImpl(ssi, "fakeCluster"); //$NON-NLS-1$

    LogonResult result = impl.logon(p);
    assertEquals(userName, result.getUserName());
View Full Code Here

Examples of org.teiid.services.SessionServiceImpl.createSession()

      fail("exception expected"); //$NON-NLS-1$
    } catch (InvalidSessionException e) {
     
    }
   
    SessionMetadata info = ssi.createSession("steve", null, "foo", new Properties(), false, true); //$NON-NLS-1$ //$NON-NLS-2$
    if (securityEnabled) {
      Mockito.verify(impl).authenticateUser("steve", null, "foo", domains, false);
    }
   
    String id1 = info.getSessionId();
View Full Code Here

Examples of org.uiautomation.ios.IOSServerManager.createSession()

    final IOSServerManager mgr = new IOSServerManager(config);
    addSafari(mgr, new StringBuilder());

    IOSCapabilities saf = IOSCapabilities.iphone("Safari");
    ServerSideSession session = mgr.createSession(saf);
    Assert.assertEquals(mgr.getSessions().size(), 1);
    Thread t = new Thread(new Runnable() {
      @Override
      public void run() {
View Full Code Here

Examples of org.wso2.carbon.rule.kernel.backend.RuleBackendRuntime.createSession()

            rule.setValue("gov:" + StratosConstants.THROTTLING_RULES_PATH);
            ruleSet.addRule(rule);

            ruleBackendRuntime.addRuleSet(ruleSet);

            this.session = ruleBackendRuntime.createSession(Constants.RULE_STATEFUL_SESSION);

        }catch(Exception e){

            String msg = "Error occurred while initializing the rule executing environment: " + e.getMessage();
            log.error(msg);
View Full Code Here

Examples of pl.net.bluesoft.rnd.processtool.bpm.ProcessToolBpmSession.createSession()

      Map<UserData,ProcessToolBpmSession> substitutedUserToSession = from(substitutedUsers).mapTo(new F<UserData,ProcessToolBpmSession>()
      {
        @Override
        public ProcessToolBpmSession invoke(UserData substitutedUser)
        {
          return bpmSession.createSession(substitutedUser,substitutedUser.getRoleNames(),ProcessToolContext.Util.getThreadProcessToolContext());
        }
      });

      substitutionsPanel = new Panel(getMessage("activity.substitutions"));
      substitutionsPanel.setStyleName(ChameleonTheme.PANEL_LIGHT);
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.