Examples of TransportOutDescription


Examples of org.apache.axis2.description.TransportOutDescription

   
    SandeshaPolicyBean policy = getPropertyBean(message.getAxisOperation());
    if(policy.isUseMessageSerialization())
      return; // No need to mess with the transport when we use message serialization
   
    TransportOutDescription transportOutDescription = message.getTransportOut();
    if (!(transportOutDescription instanceof Sandesha2TransportOutDesc))
      return; //This message is aimed to be stored only if, Sandesha2TransportOutDescription is set.
   
    ArrayList executionChain = message.getExecutionChain();
    ArrayList retransmittablePhaseNames = getRetransmittablePhaseNameList();
View Full Code Here

Examples of org.apache.axis2.description.TransportOutDescription

      String makeConnectionNamespace,
      Transaction transaction)
  throws AxisFault
  {
    if(log.isDebugEnabled()) log.debug("Enter: MakeConnectionProcessor::replyToPoll");
    TransportOutDescription transportOut = pollMessage.getMessageContext().getTransportOut();
    if (transportOut==null) {
      String message = SandeshaMessageHelper.getMessage(
          SandeshaMessageKeys.cantSendMakeConnectionNoTransportOut);
      if(log.isDebugEnabled()) log.debug(message);
      throw new SandeshaException (message);
View Full Code Here

Examples of org.apache.axis2.description.TransportOutDescription

    }

    if (senderBean==null)
      return false;
     
    TransportOutDescription transportOut = rmMsgCtx.getMessageContext().getTransportOut();
    if (transportOut==null) {
      String message = SandeshaMessageHelper.getMessage(
          SandeshaMessageKeys.cantSendMakeConnectionNoTransportOut);
      throw new SandeshaException (message);
    }
View Full Code Here

Examples of org.apache.axis2.description.TransportOutDescription


    // message will be stored in the Sandesha2TransportSender
    msgContext.setProperty(Sandesha2Constants.MESSAGE_STORE_KEY, storageKey);

    TransportOutDescription transportOut = msgContext.getTransportOut();

    msgContext.setProperty(Sandesha2Constants.ORIGINAL_TRANSPORT_OUT_DESC, transportOut);
    msgContext.setProperty(Sandesha2Constants.SET_SEND_TO_TRUE, Sandesha2Constants.VALUE_TRUE);
    msgContext.setProperty(Sandesha2Constants.MESSAGE_STORE_KEY, storageKey);
View Full Code Here

Examples of org.apache.axis2.description.TransportOutDescription

   
    Object property = message.getProperty(Sandesha2Constants.RETRANSMITTABLE_PHASES);
    if (property!=null)
      return; //Phases are already set. Dont hv to redo.
   
    TransportOutDescription transportOutDescription = message.getTransportOut();
    if (!(transportOutDescription instanceof Sandesha2TransportOutDesc))
      return; //This message is aimed to be stored only if, Sandesha2TransportOutDescription is set.
   
    ArrayList executionChain = message.getExecutionChain();
    ArrayList retransmittablePhaseNames = getRetransmittablePhaseNameList();
View Full Code Here

Examples of org.apache.axis2.description.TransportOutDescription

                        "JSON Encounterd an Error. Please see the logs");
            }

            mc.setProperty("JSONObject", xmlToJSonObj);

            TransportOutDescription outDescription =
                    new TransportOutDescription(new QName("http"));
            SynapseJsonSender jsonSender = new SynapseJsonSender();
            outDescription.setSender(jsonSender);

            mc.setTransportOut(outDescription);

            /*
            Underline SOAP engine should be notified if the MessageContext Contain
View Full Code Here

Examples of org.apache.axis2.description.TransportOutDescription

                trsIn.addParameter( queueConnectionFactory );
               
                trsIn.setReceiver(jmsListener);

                configContext.getAxisConfiguration().addTransportIn( trsIn );
                TransportOutDescription trsOut = configContext.getAxisConfiguration().getTransportOut(Constants.TRANSPORT_JMS);
                //configContext.getAxisConfiguration().addTransportOut( trsOut );
                trsOut.setSender(jmsSender);

                if (listenerManager == null) {
                    listenerManager = new ListenerManager();
                    listenerManager.init(configContext);
                }
View Full Code Here

Examples of org.apache.axis2.description.TransportOutDescription

                        "JSON Encounterd an Error. Please see the logs");
            }

            mc.setProperty("JSONObject", xmlToJSonObj);

            TransportOutDescription outDescription =
                    new TransportOutDescription(new QName("http"));
            SynapseJsonSender jsonSender = new SynapseJsonSender();
            outDescription.setSender(jsonSender);

            mc.setTransportOut(outDescription);

            /*
            Underline SOAP engine should be notified if the MessageContext Contain
View Full Code Here

Examples of org.apache.axis2.description.TransportOutDescription

            request.getRequestURI() + " on port : " + port);

        MessageContext msgContext = new MessageContext();
        msgContext.setIncomingTransportName(Constants.TRANSPORT_HTTP);
        try {
            TransportOutDescription transportOut = configurationContext.getAxisConfiguration()
                .getTransportOut(new QName(Constants.TRANSPORT_HTTP));
            TransportInDescription transportIn = configurationContext.getAxisConfiguration()
                .getTransportIn(new QName(Constants.TRANSPORT_HTTP));

            msgContext.setConfigurationContext(configurationContext);
View Full Code Here

Examples of org.apache.axis2.description.TransportOutDescription

        MessageContext msgContext = new MessageContext();
        msgContext.setIncomingTransportName(Constants.TRANSPORT_HTTP);
        msgContext.setProperty(MessageContext.REMOTE_ADDR, request.getRemoteAddr());

        try {
            TransportOutDescription transportOut = this.configurationContext.getAxisConfiguration()
                    .getTransportOut(Constants.TRANSPORT_HTTP);
            TransportInDescription transportIn = this.configurationContext.getAxisConfiguration()
                    .getTransportIn(Constants.TRANSPORT_HTTP);

            msgContext.setConfigurationContext(this.configurationContext);
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.