Examples of deleteSession()


Examples of org.hpi.server.session.HPISessionManager.deleteSession()

   * @param operation
   * @return
   */
  private LogoffResponse doLogoff(LogoffRequest operation) {
    HPISessionManager sessionManager = HPISessionManager.getInstance();
    if (sessionManager.deleteSession(operation.getSessionId())) {
      return new LogoffResponse("The session was removed successfully.", Response.Status.SUCCESS);
    } else {
      return new LogoffResponse("No session was found to remove.", Response.Status.FAIL);
    }
  }
View Full Code Here

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

      LOGGER.error("run", e);
    } finally {
      try {
        SCMessage msg = new SCMessage();
        msg.setSessionInfo("kill server");
        service.deleteSession(5, msg);
        sc.detach(2); // detaches from SC, stops communication
      } catch (Exception e) {
        LOGGER.error("cleanup", e);
      }
    }
View Full Code Here

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

    } catch (Exception e) {
      LOGGER.error("run", e);
    } finally {
      try {
        service.deleteSession(); // regular
        // service.deleteSession(10); // alternative with operation timeout
        // SCMessage msg = new SCMessage();
        // msg.setSessionInfo("session-info"); // optional
        // service.deleteSession(10, msg); // alternative with operation timeout and message
        // service.deleteSession(msg); // alternative with message
View Full Code Here

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

      sessionServiceA.send(requestMsg);

      // wait until message received
      waitForMessage(10);
      // deletes the session
      sessionServiceA.deleteSession();

    } catch (Exception e) {
      e.printStackTrace();
    } finally {
      try {
View Full Code Here

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

      requestMsg.setCompressed(false);
      System.out.println(buffer.length);
      SCMessage responseMsg = sessionServiceA.execute(requestMsg);
      System.out.println(responseMsg.getData().toString());
      // deletes the session
      sessionServiceA.deleteSession();
    } catch (Exception e) {
      e.printStackTrace();
    } finally {
      try {
        // disconnects from SC
View Full Code Here

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

      requestMsg.setCompressed(false);
      SCMessage responseMsg = sessionServiceA.execute(requestMsg);

      System.out.println(responseMsg.getData().toString());
      // deletes the session
      sessionServiceA.deleteSession();

    } catch (Exception e) {
      e.printStackTrace();
    } finally {
      try {
View Full Code Here

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

      LOGGER.error("run", e);
    } finally {
      try {
        SCMessage msg = new SCMessage();
        msg.setSessionInfo("kill server");
        sessionSrv.deleteSession(5, msg);
        sc.detach(2); // detaches from SC, stops communication
      } catch (Exception e) {
        LOGGER.error("cleanup", e);
      }
    }
View Full Code Here

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

    pubService1.subscribe(scSubscribeMessage, new TestPublishServiceMessageCallback(pubService1));

    System.out.println("APISessionSubscriptionTest.t01_()");

    try {
      sessService.deleteSession();
      pubService.unsubscribe();
    } catch (Exception e) {
      client.detach();
    }
    client.detach();
View Full Code Here

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

    response = service2.createSession(request, cbk2);
    Assert.assertNotNull("the session ID is null", service2.getSessionId());

    service1.deleteSession();
    Assert.assertNull("the session ID is NOT null after deleteSession()", service1.getSessionId());
    service2.deleteSession();
    Assert.assertNull("the session ID is NOT null after deleteSession()", service2.getSessionId());
  }

  /**
   * Description: screw up sessionId before create session<br>
View Full Code Here

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

    response = sessionService2.execute(request);
    Assert.assertEquals("cacheFor1Hour", response.getData());
    Assert.assertEquals("700", response.getCacheId());
    Assert.assertEquals("2", response.getCachePartNr());

    sessionService2.deleteSession();
    sessionService1.deleteSession();
  }

  /**
   * Description: sessionService1 exchange a large message into cache, sessionService2 gets same message on same service
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.