Package org.activemq.ws.notification

Examples of org.activemq.ws.notification.NotificationProducer


            advisor.start();
        }
    }
   
    protected void fireDemandChangeEvent(boolean inDemand) {
        NotificationProducer p = createPublisherNotificationProducer();
        if( inDemand ) {
            SubscribeDocument requestDoc = SubscribeDocument.Factory.newInstance();
            Subscribe subscribe = requestDoc.addNewSubscribe();
            subscribe.setTopicExpression( TopicExpressionConverter.toTopicExpression(topic) );
            subscribe.setUseNotify(true);
            subscribe.setConsumerReference(endpointReference);
            SubscribeResponseDocument reponse = p.Subscribe(requestDoc);
        } else {
            UnsubscribeDocument requestDoc = UnsubscribeDocument.Factory.newInstance();
            Unsubscribe unsubscribe = requestDoc.addNewUnsubscribe();           
        }
    }
View Full Code Here


            Unsubscribe unsubscribe = requestDoc.addNewUnsubscribe();           
        }
    }

    protected NotificationProducer createPublisherNotificationProducer() {
        return new NotificationProducer() {
            public SubscribeResponseDocument Subscribe(SubscribeDocument request) {
                throw new RuntimeException("Not implemented");
            }
            public GetCurrentMessageResponseDocument getCurrentMessage(GetCurrentMessageDocument request) {
                throw new RuntimeException("Not implemented");
View Full Code Here

TOP

Related Classes of org.activemq.ws.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.