Examples of SandeshaListener


Examples of org.apache.sandesha2.client.SandeshaListener

    //validating the outgoing message
    MessageValidator.validateOutgoingMessage(rmMsgCtx);
   
    // setting the Fault callback
    SandeshaListener faultCallback = (SandeshaListener) msgContext.getOptions().getProperty(
        SandeshaClientConstants.SANDESHA_LISTENER);
    if (faultCallback != null) {
      OperationContext operationContext = msgContext.getOperationContext();
      if (operationContext != null) {
        operationContext.setProperty(SandeshaClientConstants.SANDESHA_LISTENER, faultCallback);
View Full Code Here

Examples of org.apache.sandesha2.client.SandeshaListener

      log.debug("Enter: FaultManager::manageIncomingFault");
    InvocationResponse response = InvocationResponse.CONTINUE;
    if (log.isErrorEnabled())
      log.error(fault);
   
    SandeshaListener listner = (SandeshaListener) rmMsgCtx.getProperty(SandeshaClientConstants.SANDESHA_LISTENER);
    if (listner!=null)
      listner.onError(fault);
   
    // Get the SOAPVersion
    SOAPFactory factory = (SOAPFactory) rmMsgCtx.getSOAPEnvelope().getOMFactory();   
    String SOAPNamespaceValue = factory.getSoapVersionURI();
   
View Full Code Here

Examples of org.apache.sandesha2.client.SandeshaListener

      log.debug("Enter: CreateSeqMsgProcessor::processOutMessage");

    MessageContext msgCtx = rmMsgCtx.getMessageContext();

    // adding the SANDESHA_LISTENER
    SandeshaListener faultCallback = (SandeshaListener) msgCtx.getOptions().getProperty(
        SandeshaClientConstants.SANDESHA_LISTENER);
    if (faultCallback != null) {
      OperationContext operationContext = msgCtx.getOperationContext();
      if (operationContext != null) {
        operationContext.setProperty(SandeshaClientConstants.SANDESHA_LISTENER, faultCallback);
View Full Code Here

Examples of org.apache.sandesha2.client.SandeshaListener

   
    // Already an active transaction, so don't want a new one
    TerminateManager.timeOutSendingSideSequence(internalSequenceID, storageManager);

    if (messageContext != null) {
      SandeshaListener listener = (SandeshaListener) messageContext
          .getProperty(SandeshaClientConstants.SANDESHA_LISTENER);
      if (listener != null) {
        SequenceReport report = SandeshaClient.getOutgoingSequenceReport(internalSequenceID, configurationContext, false);
        listener.onTimeOut(report);
      }
    }
  }
View Full Code Here

Examples of org.apache.sandesha2.client.SandeshaListener

    configurationContext.setProperty(Sandesha2Constants.WITHIN_TRANSACTION, messageContext
        .getProperty(Sandesha2Constants.WITHIN_TRANSACTION));
    SequenceReport report = SandeshaClient.getOutgoingSequenceReport(internalSequenceID, configurationContext);
    TerminateManager.timeOutSendingSideSequence(configurationContext,sequencePropertyKey ,internalSequenceID, false, storageManager);

    SandeshaListener listener = (SandeshaListener) messageContext
        .getProperty(SandeshaClientConstants.SANDESHA_LISTENER);
    if (listener != null) {
      listener.onTimeOut(report);
    }
  }
View Full Code Here

Examples of org.apache.sandesha2.client.SandeshaListener

      log.debug("Enter: FaultManager::manageIncomingFault");
    InvocationResponse response = InvocationResponse.CONTINUE;
    if (log.isErrorEnabled())
      log.error(fault);
   
    SandeshaListener listner = (SandeshaListener) rmMsgCtx.getProperty(SandeshaClientConstants.SANDESHA_LISTENER);
    if (listner!=null)
      listner.onError(fault);
   
    // Get the SOAPVersion
    SOAPFactory factory = (SOAPFactory) rmMsgCtx.getSOAPEnvelope().getOMFactory();   
    String SOAPNamespaceValue = factory.getSoapVersionURI();
   
View Full Code Here

Examples of org.apache.sandesha2.client.SandeshaListener

   
    // Already an active transaction, so don't want a new one
    TerminateManager.timeOutSendingSideSequence(internalSequenceID, storageManager);

    if (messageContext != null) {
      SandeshaListener listener = (SandeshaListener) messageContext
          .getProperty(SandeshaClientConstants.SANDESHA_LISTENER);
      if (listener != null) {
        SequenceReport report = SandeshaClient.getOutgoingSequenceReport(internalSequenceID, configurationContext, false);
        listener.onTimeOut(report);
      }
    }
  }
View Full Code Here

Examples of org.apache.sandesha2.client.SandeshaListener

    //validating the outgoing message
    MessageValidator.validateOutgoingMessage(rmMsgCtx);
   
    // setting the Fault callback
    SandeshaListener faultCallback = (SandeshaListener) msgContext.getOptions().getProperty(
        SandeshaClientConstants.SANDESHA_LISTENER);
    if (faultCallback != null) {
      OperationContext operationContext = msgContext.getOperationContext();
      if (operationContext != null) {
        operationContext.setProperty(SandeshaClientConstants.SANDESHA_LISTENER, faultCallback);
View Full Code Here

Examples of org.apache.sandesha2.client.SandeshaListener

      log.debug("Enter: CreateSeqMsgProcessor::processOutMessage");

    MessageContext msgCtx = rmMsgCtx.getMessageContext();

    // adding the SANDESHA_LISTENER
    SandeshaListener faultCallback = (SandeshaListener) msgCtx.getOptions().getProperty(
        SandeshaClientConstants.SANDESHA_LISTENER);
    if (faultCallback != null) {
      OperationContext operationContext = msgCtx.getOperationContext();
      if (operationContext != null) {
        operationContext.setProperty(SandeshaClientConstants.SANDESHA_LISTENER, faultCallback);
View Full Code Here

Examples of org.apache.sandesha2.client.SandeshaListener

        if (operationContext!=null) {
          MessageContext requestMessage = operationContext.getMessageContext(OperationContextFactory.MESSAGE_LABEL_OUT_VALUE);
          if (requestMessage!=null) {
            if(SandeshaUtil.isRetriableOnFaults(requestMessage)){
             
              SandeshaListener faultCallback = (SandeshaListener) operationContext.getProperty(SandeshaClientConstants.SANDESHA_LISTENER);
              if (faultCallback!=null) {
               
               
                //constructing the fault
                AxisFault axisFault = getAxisFaultFromFromSOAPFault (faultPart);
               
               
                //reporting the fault
                log.error(axisFault);
                if (faultCallback!=null) {
                  faultCallback.onError(axisFault);
                }
               
              }
             
              //stopping the fault from going further and getting dispatched
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.