Package org.activemq.ws.xmlbeans.notification.base

Examples of org.activemq.ws.xmlbeans.notification.base.SubscribeResponseDocument$Factory


        // START SNIPPET: subscribe
        SubscribeDocument subrequest = SubscribeDocument.Factory.newInstance();
        SubscribeDocument.Subscribe subscribe = subrequest.addNewSubscribe();
        subscribe.setTopicExpression( TopicExpressionConverter.toTopicExpression(topic) );
        subscribe.setUseNotify(true);
        SubscribeResponseDocument subresponse = broker.Subscribe(subrequest);
        // END SNIPPET: subscribe


        System.out.println("Sub request: "+subrequest);
        System.out.println("Sub response: "+subresponse);
        assertNotNull(subresponse);
       
        return subresponse.getSubscribeResponse().getSubscriptionReference();
    }
View Full Code Here


            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

       
        EndpointReferenceType endpointReference = subscriptionManager.register( subscription );
        subscription.setEndpointReference(endpointReference);
       
        // Send response.
        SubscribeResponseDocument responseDoc = SubscribeResponseDocument.Factory.newInstance();
        responseDoc.addNewSubscribeResponse().setSubscriptionReference(endpointReference);
        return responseDoc;
    }
View Full Code Here

TOP

Related Classes of org.activemq.ws.xmlbeans.notification.base.SubscribeResponseDocument$Factory

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.