Package org.serviceconnector.cache

Examples of org.serviceconnector.cache.SCCache.cacheMessage()


  public void receive(SCMPMessage reply) {
    String serviceName = this.requestMessage.getServiceName();
    // caching
    SCCache cache = AppContext.getSCCache();
    if (cache.isCacheEnabled() == true) {
      cache.cacheMessage(this.requestMessage, reply);
    }
    // forward server reply to client
    reply.setIsReply(true);
    reply.setMessageType(this.msgType);
    reply.setServiceName(serviceName);
View Full Code Here


      fault = new SCMPMessageFault(scmpVersion, SCMPError.SC_ERROR, "error executing " + this.msgType + " sid=" + sid);
    }
    // caching
    SCCache cache = AppContext.getSCCache();
    if (cache.isCacheEnabled() == true) {
      cache.cacheMessage(this.requestMessage, fault);
    }
    String serviceName = this.requestMessage.getServiceName();
    // forward server reply to client
    fault.setSessionId(sid);
    fault.setIsReply(true);
View Full Code Here

  /** {@inheritDoc} */
  @Override
  public void receive(SCMPMessage reply) {
    SCCache cache = AppContext.getSCCache();
    if (cache.isCacheEnabled() == true) {
      cache.cacheMessage(this.requestMessage, reply);
    }
    // forward server reply to client
    reply.setIsReply(true);
    reply.setMessageType(this.msgType);
    reply.setServiceName(this.requestServiceName);
View Full Code Here

      fault = new SCMPMessageFault(scmpVersion, SCMPError.SC_ERROR, "error executing " + this.msgType + " sid=" + this.sid);
    }
    // caching
    SCCache cache = AppContext.getSCCache();
    if (cache.isCacheEnabled() == true) {
      cache.cacheMessage(this.requestMessage, fault);
    }
    // forward server reply to client
    fault.setSessionId(this.sid);
    fault.setIsReply(true);
    fault.setMessageType(this.msgType);
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.