Package org.apache.axis2.clustering.management

Examples of org.apache.axis2.clustering.management.GroupManagementAgent.send()


    terminateRMMessage.getMessageContext().setTransportOut(new Sandesha2TransportOutDesc ());
    addTerminateSeqTransaction.commit();
   
      AxisEngine engine = new AxisEngine (configurationContext);
      try {
      engine.send(terminateRMMessage.getMessageContext());
    } catch (AxisFault e) {
      throw new SandeshaException (e.getMessage());
    }
     
  }
View Full Code Here


    closeSeqResponseRMMsg.addSOAPEnvelope();
   
    AxisEngine engine = new AxisEngine (closeSequenceMsg.getConfigurationContext());
   
    try {
      engine.send(closeSequenceResponseMsg);
    } catch (AxisFault e) {
      String message = "Could not send the terminate sequence response";
      throw new SandeshaException (message,e);
    }
   
View Full Code Here

    if (faultMessageContext != null) {
      ConfigurationContext configurationContext = msgCtx.getConfigurationContext();
      AxisEngine engine = new AxisEngine(configurationContext);
     
      try {
        engine.send(faultMessageContext.getMessageContext());
      } catch (AxisFault e) {
        throw new SandeshaException ("Could not send the fault message",e);
      }
     
      return;
View Full Code Here

     RMMsgContext ackRMMessage = AcknowledgementManager.generateAckMessage(rmMsgCtx,sequenceId);
   
     AxisEngine engine = new AxisEngine (configCtx);
    
     try {
      engine.send(ackRMMessage.getMessageContext());
    } catch (AxisFault e) {
      String message = "Exception thrown while trying to send the ack message";
      throw new SandeshaException (message,e);
    }
  }
View Full Code Here

    createSeqMsg.setTransportOut(sandesha2TransportOutDesc);

    // sending the message once through Sandesha2TransportSender.
    AxisEngine engine = new AxisEngine(createSeqMsg.getConfigurationContext());
     try {
       engine.send(createSeqMsg);
     } catch (AxisFault e) {
       throw new SandeshaException (e.getMessage());
     }
  }
View Full Code Here

          Constants.VALUE_TRUE);

      rmMsgCtx.getMessageContext().setProperty(
          Sandesha2Constants.ACK_WRITTEN, "true");
      try {
        engine.send(ackRMMsgCtx.getMessageContext());
      } catch (AxisFault e1) {
        throw new SandeshaException(e1.getMessage());
      }
    } else {
View Full Code Here

     
      ackMsgCtx.setTransportOut(new Sandesha2TransportOutDesc ());
     
      AxisEngine engine = new AxisEngine (configurationContext);
      try {
        engine.send(ackMsgCtx);
      } catch (AxisFault e) {
        throw new SandeshaException (e.getMessage());
      }
     
      SandeshaUtil.startSenderForTheSequence(configurationContext,sequenceID);
View Full Code Here

            }

            oc.addMessageContext(mc);
            // ship it out
            AxisEngine engine = new AxisEngine(cc);
            engine.send(mc);
        }

    }

    public OperationContext getOperationContext() {
View Full Code Here

        AxisEngine ae = new AxisEngine(messageContext.getConfigurationContext());
        try {
            messageContext.setProperty(Constants.ISRESPONSE_PROPERTY, Boolean.TRUE);
            // check for addressing is alredy engaged for this message.
            // if engage we should use the address enable Configuraion context.
            ae.send(messageContext);

        } catch (AxisFault e) {
            throw new SynapseException(e);
        }
    }
View Full Code Here

                // Building a nicely formatted fault
                envelope.getBody().addFault(toSoapFault(e, soapFactory));
            }
            AxisEngine engine = new AxisEngine(
                    msgContext.getOperationContext().getServiceContext().getConfigurationContext());
            engine.send(outMsgContext);
        } catch (IllegalAccessException e) {
            throw new OdeFault("Couldn't invoke method named " + methodName + " in management interface!", e);
        } catch (InvocationTargetException e) {
            throw new OdeFault("Invocation of method " + methodName + " in management interface failed!", e.getTargetException());
        }
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.