Package org.apache.sandesha2.transport

Examples of org.apache.sandesha2.transport.Sandesha2TransportOutDesc


     
      //setting a dummy property been to stop Sandesha2 from throwing exceptions.
      SandeshaPolicyBean policyBean = new SandeshaPolicyBean ();
      axisConfiguration.addParameter(new Parameter (Sandesha2Constants.SANDESHA_PROPERTY_BEAN,policyBean));
     
      InMemoryStorageManager storageManager = new InMemoryStorageManager (configurationContext);
     
      Transaction transaction = storageManager.getTransaction();
     
      RMSBeanMgr rmsBeanMgr = storageManager.getRMSBeanMgr();
     
      RMSBean rmsBean = new RMSBean ();
      RMSBean duplicateRMSBean = new RMSBean ();
     
      rmsBean.setCreateSeqMsgID(SandeshaUtil.getUUID());
View Full Code Here


      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();
      msgContext.setTransportOut(sandesha2TransportOutDesc);
 
       // sending the message once through Sandesha2TransportSender.
       AxisEngine engine = new AxisEngine(configurationContext);
 
View Full Code Here

    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);

    Sandesha2TransportOutDesc sandesha2TransportOutDesc = new Sandesha2TransportOutDesc();
    msgContext.setTransportOut(sandesha2TransportOutDesc);

     // sending the message once through Sandesha2TransportSender.
     AxisEngine engine = new AxisEngine(configurationContext);
View Full Code Here

      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();
      msgContext.setTransportOut(sandesha2TransportOutDesc);
 
       // sending the message once through Sandesha2TransportSender.
      if (msgContext.isPaused())
        AxisEngine.resumeSend(msgContext);
View Full Code Here

      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();
      msgContext.setTransportOut(sandesha2TransportOutDesc);
     
      //this invocation has to be a blocking one.
      Boolean isTransportNonBlocking = (Boolean) msgContext.getProperty(MessageContext.TRANSPORT_NON_BLOCKING);
      if (isTransportNonBlocking!=null && isTransportNonBlocking.booleanValue())
View Full Code Here

    //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();
   
      AxisEngine engine = new AxisEngine (configurationContext);
      try {
      engine.send(msgContext);
View Full Code Here

   
    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);
   
    Sandesha2TransportOutDesc sandesha2TransportOutDesc = new Sandesha2TransportOutDesc ();
    createSeqMsg.setTransportOut(sandesha2TransportOutDesc);

    // sending the message once through Sandesha2TransportSender.
    AxisEngine engine = new AxisEngine(createSeqMsg.getConfigurationContext());
     try {
View Full Code Here

    // changing the sender. This will set send to true.
    TransportSender sender = msg.getTransportOut().getSender();

    if (sender != null) {
      Sandesha2TransportOutDesc sandesha2TransportOutDesc = new Sandesha2TransportOutDesc ();
      msg.setProperty(Sandesha2Constants.MESSAGE_STORE_KEY, storageKey);
      msg.setProperty(Sandesha2Constants.ORIGINAL_TRANSPORT_OUT_DESC,
          msg.getTransportOut());
      msg.setTransportOut(sandesha2TransportOutDesc);
     
View Full Code Here

    //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();
   
      AxisEngine engine = new AxisEngine (configurationContext);
      try {
      engine.send(terminateRMMessage.getMessageContext());
View Full Code Here

      ackMsgCtx.setProperty(Sandesha2Constants.ORIGINAL_TRANSPORT_OUT_DESC,ackMsgCtx.getTransportOut());
      ackMsgCtx.setProperty(Sandesha2Constants.SET_SEND_TO_TRUE,Sandesha2Constants.VALUE_TRUE);
     
      ackMsgCtx.setProperty(Sandesha2Constants.MESSAGE_STORE_KEY,key);
     
      ackMsgCtx.setTransportOut(new Sandesha2TransportOutDesc ());
     
      AxisEngine engine = new AxisEngine (configurationContext);
      try {
        engine.send(ackMsgCtx);
      } catch (AxisFault e) {
View Full Code Here

TOP

Related Classes of org.apache.sandesha2.transport.Sandesha2TransportOutDesc

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.