Package org.servicemix.wspojo.notification

Examples of org.servicemix.wspojo.notification.NotificationProducer


    // Implementation methods
    // -------------------------------------------------------------------------
    protected void fireDemandChangeEvent(boolean inDemand) throws RemoteException, SubscribeCreationFailedFault,
            ResourceUnknownFault, TopicPathDialectUnknownFault {
        NotificationProducer producer = createPublisherNotificationProducer();
        if (inDemand) {
            producer.subscribe(publisherReference, topicConverter.toTopicExpression(topic), useNotify, precondition,
                    selector, subscriptionPolicy, terminationTime);
        }
        else {

            // TODO how to unsubscribe?
View Full Code Here


            // TODO how to unsubscribe?
        }
    }

    protected NotificationProducer createPublisherNotificationProducer() {
        return new NotificationProducer() {
            public EndpointReferenceType subscribe(
                    @WebParam(name = "ConsumerReference", targetNamespace = "http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd")
                    EndpointReferenceType consumerReference,
                    @WebParam(name = "TopicExpression", targetNamespace = "http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd")
                    TopicExpressionType topicExpression,
View Full Code Here

TOP

Related Classes of org.servicemix.wspojo.notification.NotificationProducer

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.