Examples of addMessage()


Examples of org.activemq.service.Subscription.addMessage()

        Set matchingSubscriptions = subscriptionContainer.getSubscriptions(message.getJMSActiveMQDestination());
        if (!matchingSubscriptions.isEmpty()) {
            for (Iterator i = matchingSubscriptions.iterator();i.hasNext();) {
                Subscription sub = (Subscription) i.next();
                if (sub.isTarget(message)) {
                    sub.addMessage(container, message);
                }
            }
            updateSendStats(client, message);
        }       
    }
View Full Code Here

Examples of org.activiti.bpmn.model.BpmnModel.addMessage()

        } else if (ELEMENT_MESSAGE.equalsIgnoreCase(xtr.getLocalName())) {
         
          if (StringUtils.isNotEmpty(xtr.getAttributeValue(null, ATTRIBUTE_ID))) {
            String messageId = xtr.getAttributeValue(null, ATTRIBUTE_ID);
            String messageName = xtr.getAttributeValue(null, ATTRIBUTE_NAME);
            model.addMessage(messageId, messageName);
          }
         
        } else if (ELEMENT_PARTICIPANT.equalsIgnoreCase(xtr.getLocalName())) {
         
          if (StringUtils.isNotEmpty(xtr.getAttributeValue(null, ATTRIBUTE_ID))) {
View Full Code Here

Examples of org.apache.activemq.store.MessageStore.addMessage()

    void commit(KahaTransactionStore transactionStore) throws IOException{
        for(int i=0;i<list.size();i++){
            TxCommand command=(TxCommand) list.get(i);
            MessageStore ms=transactionStore.getStoreById(command.getMessageStoreKey());
            if(command.isAdd()){
                ms.addMessage(null,(Message) command.getCommand());
            }
        }
        for(int i=0;i<list.size();i++){
            TxCommand command=(TxCommand) list.get(i);
            MessageStore ms=transactionStore.getStoreById(command.getMessageStoreKey());
View Full Code Here

Examples of org.apache.axis2.description.AxisOperation.addMessage()

    protected void setUp() throws Exception {
        AxisOperation axisOperation = new InOutAxisOperation(new QName(ADD_OPERATION));
        axisMessage = new AxisMessage();
        axisMessage.setName("AddRequest");
        axisMessage.setElementQName(new QName("http://ws.apache.org/schemas/axis2", "AddRequest"));
        axisOperation.addMessage(axisMessage, WSDLConstants.MESSAGE_LABEL_IN_VALUE);
        axisMessage.setParent(axisOperation);

        axisService = new AxisService("DummyService");
        axisService.addOperation(axisOperation);
        axisOperation.setParent(axisService);
View Full Code Here

Examples of org.apache.axis2.description.InOutAxisOperation.addMessage()

    protected void setUp() throws Exception {
        AxisOperation axisOperation = new InOutAxisOperation(new QName(ADD_OPERATION));
        axisMessage = new AxisMessage();
        axisMessage.setName("AddRequest");
        axisMessage.setElementQName(new QName("http://ws.apache.org/schemas/axis2", "AddRequest"));
        axisOperation.addMessage(axisMessage, WSDLConstants.MESSAGE_LABEL_IN_VALUE);
        axisMessage.setParent(axisOperation);

        axisService = new AxisService("DummyService");
        axisService.addOperation(axisOperation);
        axisOperation.setParent(axisService);
View Full Code Here

Examples of org.apache.axis2.description.OutInAxisOperation.addMessage()

        ServiceContext serviceContext = gCtx.getServiceContext(axisService);
        ctx.setServiceContext(serviceContext);
        ctx.setAxisService(axisService);
        OutInAxisOperation outInAxisOperation = new OutInAxisOperation(new QName("http://rampart.org", "test"));
        AxisMessage msg = new AxisMessage();
        outInAxisOperation.addMessage(msg,WSDLConstants.MESSAGE_LABEL_OUT_VALUE);
        outInAxisOperation.addMessage(msg,WSDLConstants.MESSAGE_LABEL_IN_VALUE);
        ctx.setAxisOperation(outInAxisOperation);
        ctx.setAxisMessage(msg);
        Options options = new Options();
        options.setAction("urn:testOperation");
View Full Code Here

Examples of org.apache.axis2.description.OutOnlyAxisOperation.addMessage()

                new OutOnlyAxisOperation(new QName(OUT_ONLY_OPERATION));
            asyncOperation.setMessageReceiver(getCallbackReceiver(synCfg));
            AxisMessage outOnlyMsg = new AxisMessage();
            outOnlyMsg.setName("out-message");
            outOnlyMsg.setParent(asyncOperation);
            asyncOperation.addMessage(outMsg, WSDLConstants.MESSAGE_LABEL_OUT_VALUE);

            AxisService axisAnonymousService  = new AxisService(serviceKey);
            axisAnonymousService.addOperation(dynamicOperation);
            axisAnonymousService.addOperation(asyncOperation);
            axisCfg.addService(axisAnonymousService);
View Full Code Here

Examples of org.apache.commons.math3.exception.util.ExceptionContext.addMessage()

        super(wrong, threshold, false);
        this.index = index;
        this.threshold = threshold;

        final ExceptionContext context = getContext();
        context.addMessage(LocalizedFormats.NOT_POSITIVE_DEFINITE_MATRIX);
        context.addMessage(LocalizedFormats.ARRAY_ELEMENT, wrong, index);
    }

    /**
     * @return the row index.
View Full Code Here

Examples of org.apache.commons.scaffold.util.BizResponse.addMessage()

      template,
      mapping.getPath(),
      mapping.getParameter()
    );
   
    bizResponse.addMessage(message);
               
        return bizResponse;
    }

View Full Code Here

Examples of org.apache.hama.bsp.BSPMessageBundle.addMessage()

    assertTrue(entry.getValue().size() == 1);

    BSPMessageBundle bundle = new BSPMessageBundle();
    for (BSPMessage msg : entry.getValue()) {
      bundle.addMessage(msg);
    }

    messageManager.transfer(peer, bundle);
   
    messageManager.clearOutgoingQueues();
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.