Package org.serviceconnector.call

Examples of org.serviceconnector.call.SCMPCheckRegistrationCall.invoke()


    // cancel server timeout not if its running already, you might interrupt current thread
    this.cancelServerTimeout(false);
    SCMPCheckRegistrationCall checkRegistrationCall = new SCMPCheckRegistrationCall(this.requester, this.serviceName);
    SCServerCallback callback = new SCServerCallback(true);
    try {
      checkRegistrationCall.invoke(callback, operationTimeoutSeconds * Constants.SEC_TO_MILLISEC_FACTOR);
    } catch (Exception e) {
      throw new SCServiceException("Check registration failed. ", e);
    }
    SCMPMessage reply = callback.getMessageSync(operationTimeoutSeconds * Constants.SEC_TO_MILLISEC_FACTOR);
    if (reply.isFault()) {
View Full Code Here


    synchronized (this.scServer) {
      // get lock on scServer - only one server is allowed to communicate over the initial connection
      SCMPCheckRegistrationCall checkRegistrationCall = new SCMPCheckRegistrationCall(this.requester, this.serviceName);
      SCServerCallback callback = new SCServerCallback(true);
      try {
        checkRegistrationCall.invoke(callback, operationTimeoutSeconds * Constants.SEC_TO_MILLISEC_FACTOR);
      } catch (Exception e) {
        throw new SCServiceException("Check registration failed. ", e);
      }
      SCMPMessage reply = callback.getMessageSync(operationTimeoutSeconds * Constants.SEC_TO_MILLISEC_FACTOR);
      if (reply.isFault()) {
View Full Code Here

    // cancel server timeout not if its running already, you might interrupt current thread
    this.cancelServerTimeout(false);
    SCMPCheckRegistrationCall checkRegistrationCall = new SCMPCheckRegistrationCall(this.requester, this.serviceName);
    SCServerCallback callback = new SCServerCallback(true);
    try {
      checkRegistrationCall.invoke(callback, operationTimeoutSeconds * Constants.SEC_TO_MILLISEC_FACTOR);
    } catch (Exception e) {
      throw new SCServiceException("Check registration failed. ", e);
    }
    SCMPMessage reply = callback.getMessageSync(operationTimeoutSeconds * Constants.SEC_TO_MILLISEC_FACTOR);
    if (reply.isFault()) {
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.