Package org.serviceconnector.call

Examples of org.serviceconnector.call.SCMPPublishCall


      throw new SCMPValidatorException("Publish message is missing.");
    }
    synchronized (this) {
      this.requester.getSCMPMsgSequenceNr().incrementAndGetMsgSequenceNr();
      // get lock on scServer - only one server is allowed to communicate over the initial connection
      SCMPPublishCall publishCall = new SCMPPublishCall(this.requester, serviceName);
      publishCall.setRequestBody(publishMessage.getData());
      publishCall.setMask(publishMessage.getMask());
      publishCall.setPartSize(publishMessage.getPartSize());
      publishCall.setMessageInfo(publishMessage.getMessageInfo());
      SCServerCallback callback = new SCServerCallback(true);
      try {
        publishCall.invoke(callback, operationTimeoutSeconds * Constants.SEC_TO_MILLISEC_FACTOR);
      } catch (Exception e) {
        throw new SCServiceException("Publish failed. ", e);
      }
      SCMPMessage message = callback.getMessageSync(operationTimeoutSeconds * Constants.SEC_TO_MILLISEC_FACTOR);
      if (message.isFault()) {
View Full Code Here


      throw new SCMPValidatorException("Publish message is missing.");
    }
    synchronized (this.scServer) {
      this.requester.getSCMPMsgSequenceNr().incrementAndGetMsgSequenceNr();
      // get lock on scServer - only one server is allowed to communicate over the initial connection
      SCMPPublishCall publishCall = new SCMPPublishCall(this.requester, serviceName);
      publishCall.setRequestBody(publishMessage.getData());
      publishCall.setMask(publishMessage.getMask());
      publishCall.setPartSize(publishMessage.getPartSize());
      publishCall.setMessageInfo(publishMessage.getMessageInfo());
      SCServerCallback callback = new SCServerCallback(true);
      try {
        publishCall.invoke(callback, operationTimeoutSeconds * Constants.SEC_TO_MILLISEC_FACTOR);
      } catch (Exception e) {
        throw new SCServiceException("Publish failed. ", e);
      }
      SCMPMessage message = callback.getMessageSync(operationTimeoutSeconds * Constants.SEC_TO_MILLISEC_FACTOR);
      if (message.isFault()) {
View Full Code Here

      throw new SCMPValidatorException("Publish message is missing.");
    }
    synchronized (this.scServer) {
      this.requester.getSCMPMsgSequenceNr().incrementAndGetMsgSequenceNr();
      // get lock on scServer - only one server is allowed to communicate over the initial connection
      SCMPPublishCall publishCall = new SCMPPublishCall(this.requester, serviceName);
      publishCall.setRequestBody(publishMessage.getData());
      publishCall.setMask(publishMessage.getMask());
      publishCall.setPartSize(publishMessage.getPartSize());
      publishCall.setMessageInfo(publishMessage.getMessageInfo());
      publishCall.setCacheMethod(publishMessage.getCachingMethod().getValue());
      publishCall.setCacheId(publishMessage.getCacheId());
      SCServerCallback callback = new SCServerCallback(true);
      try {
        publishCall.invoke(callback, operationTimeoutSeconds * Constants.SEC_TO_MILLISEC_FACTOR);
      } catch (Exception e) {
        throw new SCServiceException("Publish failed. ", e);
      }
      SCMPMessage message = callback.getMessageSync(operationTimeoutSeconds * Constants.SEC_TO_MILLISEC_FACTOR);
      if (message.isFault()) {
View Full Code Here

      throw new SCMPValidatorException("Publish message is missing.");
    }
    synchronized (this) {
      this.requester.getSCMPMsgSequenceNr().incrementAndGetMsgSequenceNr();
      // get lock on scServer - only one server is allowed to communicate over the initial connection
      SCMPPublishCall publishCall = new SCMPPublishCall(this.requester, serviceName);
      publishCall.setRequestBody(publishMessage.getData());
      publishCall.setMask(publishMessage.getMask());
      publishCall.setPartSize(publishMessage.getPartSize());
      publishCall.setMessageInfo(publishMessage.getMessageInfo());
      SCServerCallback callback = new SCServerCallback(true);
      try {
        publishCall.invoke(callback, operationTimeoutSeconds * Constants.SEC_TO_MILLISEC_FACTOR);
      } catch (Exception e) {
        throw new SCServiceException("Publish failed. ", e);
      }
      SCMPMessage message = callback.getMessageSync(operationTimeoutSeconds * Constants.SEC_TO_MILLISEC_FACTOR);
      if (message.isFault()) {
View Full Code Here

TOP

Related Classes of org.serviceconnector.call.SCMPPublishCall

Copyright © 2018 www.massapicom. 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.