Examples of TransportOutDescription


Examples of org.apache.axis2.description.TransportOutDescription

  }

  public void invoke(MessageContext msgContext) throws AxisFault {
   
    //setting the correct transport sender.
    TransportOutDescription transportOut = (TransportOutDescription) msgContext.getProperty(Sandesha2Constants.ORIGINAL_TRANSPORT_OUT_DESC);
   
    if (transportOut==null)
      throw new SandeshaException ("Original transport sender is not present");

    msgContext.setTransportOut(transportOut);
View Full Code Here

Examples of org.apache.axis2.description.TransportOutDescription

        }
       
        preSendTransaction.commit();
       
        //sending the message
        TransportOutDescription transportOutDescription = msgCtx.getTransportOut();
        TransportSender transportSender = transportOutDescription.getSender();
         
        boolean successfullySent = false;
        if (transportSender != null) {
          try {
           
View Full Code Here

Examples of org.apache.axis2.description.TransportOutDescription

   
    seqPropMgr.insert(terminateAdded);
   
    //This should be dumped to the storage by the sender
    TransportOutDescription transportOut = msgContext.getTransportOut();
    rmMsgCtx.setProperty(Sandesha2Constants.ORIGINAL_TRANSPORT_OUT_DESC,transportOut);
    rmMsgCtx.setProperty(Sandesha2Constants.MESSAGE_STORE_KEY,key);
    rmMsgCtx.setProperty(Sandesha2Constants.SET_SEND_TO_TRUE,Sandesha2Constants.VALUE_TRUE);
    rmMsgCtx.getMessageContext().setTransportOut(new Sandesha2TransportOutDesc ());
    addTerminateSeqTransaction.commit();
View Full Code Here

Examples of org.apache.axis2.description.TransportOutDescription

    terminateAdded.setValue("true");

    seqPropMgr.insert(terminateAdded);
   
    //This should be dumped to the storage by the sender
    TransportOutDescription transportOut = terminateRMMessage.getMessageContext().getTransportOut();
    terminateRMMessage.setProperty(Sandesha2Constants.ORIGINAL_TRANSPORT_OUT_DESC,transportOut);
    terminateRMMessage.setProperty(Sandesha2Constants.MESSAGE_STORE_KEY,key);
    terminateRMMessage.setProperty(Sandesha2Constants.SET_SEND_TO_TRUE,Sandesha2Constants.VALUE_TRUE);
    terminateRMMessage.getMessageContext().setTransportOut(new Sandesha2TransportOutDesc ());
    addTerminateSeqTransaction.commit();
View Full Code Here

Examples of org.apache.axis2.description.TransportOutDescription

   

    // message will be stored in the Sandesha2TransportSender   
    createSeqMsg.setProperty(Sandesha2Constants.MESSAGE_STORE_KEY, key);
   
    TransportOutDescription transportOut = createSeqMsg.getTransportOut();
   
    createSeqMsg.setProperty(Sandesha2Constants.ORIGINAL_TRANSPORT_OUT_DESC,transportOut);
    createSeqMsg.setProperty(Sandesha2Constants.SET_SEND_TO_TRUE,Sandesha2Constants.VALUE_TRUE);
    createSeqMsg.setProperty(Sandesha2Constants.MESSAGE_STORE_KEY, key);
   
View Full Code Here

Examples of org.apache.axis2.description.TransportOutDescription

      try {
        if(log.isDebugEnabled()) log.debug("Creating replyTo EPR");
       
        // Try to work out which transport to use. If the user didn't choose one
        // then we use the To address to take a guess.
        TransportOutDescription senderTransport = options.getTransportOut();
        String transportName = null;
        if(senderTransport != null) {
          transportName = senderTransport.getName();
        }

        if(transportName == null) {
          int index = to.indexOf(':');
          if(index > 0) transportName = to.substring(0, index);
View Full Code Here

Examples of org.apache.axis2.description.TransportOutDescription

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

Examples of org.apache.axis2.description.TransportOutDescription

     
    } else {
      // 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);
 
      Sandesha2TransportOutDesc sandesha2TransportOutDesc = new Sandesha2TransportOutDesc();
View Full Code Here

Examples of org.apache.axis2.description.TransportOutDescription

      return; //Phases are already set. Dont hv to redo.
   
      if(manager.requiresMessageSerialization())
      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.
   
    List<Handler> executionChain = message.getExecutionChain();
    ArrayList<Handler> retransmittablePhases = new ArrayList<Handler>();
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
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.