Examples of NotificationMessageHolderType


Examples of org.servicemix.ws.xmlbeans.notification.base.NotificationMessageHolderType

        NotificationMessageHolderType[] messageArray = notify.getNotificationMessageArray();
        assertNotNull("null: messageArray", messageArray);
        assertTrue("Must have at least one message entry", messageArray.length > 0);

        for (int i = 0; i < messageArray.length; i++) {
            NotificationMessageHolderType messageHolder = messageArray[i];
            assertNotNull("null: messageHolder[" + i + "]", messageHolder);

            XmlObject message = messageHolder.getMessage();
            assertNotNull("null: message[" + i + "]", message);
        }
    }
View Full Code Here

Examples of org.servicemix.ws.xmlbeans.notification.base.NotificationMessageHolderType

    protected void notifyMessages(NotifyDocument notifyDocument) {
        NotifyDocument.Notify notify = notifyDocument.getNotify();
        NotificationMessageHolderType[] notificationMessageArray = notify.getNotificationMessageArray();
        for (int i = 0; i < notificationMessageArray.length; i++) {
            NotificationMessageHolderType holderType = notificationMessageArray[i];
            notifyMessage(holderType);
        }
    }
View Full Code Here

Examples of org.servicemix.ws.xmlbeans.notification.base.NotificationMessageHolderType

    }

    private void dispatch(TopicExpressionType topic, XmlObject xml) {
        NotifyDocument request = NotifyDocument.Factory.newInstance();
        Notify notify = request.addNewNotify();
        NotificationMessageHolderType messageHolder = notify.addNewNotificationMessage();

        EndpointReferenceType producerReference = getProducerReference();
        if (producerReference != null) {
            messageHolder.setProducerReference((EndpointReferenceType) producerReference.copy());
        }
        messageHolder.setTopic(topic);
        messageHolder.setMessage(xml);

        notificationConsumer.notify(request);
    }
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.