Package org.apache.airavata.wsmg.client

Examples of org.apache.airavata.wsmg.client.WseMsgBrokerClient.publish()


            String subscriptionID = wseMsgBrokerClient.subscribe(consumerEPRs[0], topicExpression, xpathExpression);

            try {

                wseMsgBrokerClient.publish(topicExpression, AXIOMUtil.stringToOM(validMsg));
                wseMsgBrokerClient.publish(topicExpression, AXIOMUtil.stringToOM(invalidMsg));

                SOAPEnvelope env = getMsgQueue().take();

                assertNotNull(env.getBody());
View Full Code Here


            String subscriptionID = wseMsgBrokerClient.subscribe(consumerEPRs[0], topicExpression, xpathExpression);

            try {

                wseMsgBrokerClient.publish(topicExpression, AXIOMUtil.stringToOM(validMsg));
                wseMsgBrokerClient.publish(topicExpression, AXIOMUtil.stringToOM(invalidMsg));

                SOAPEnvelope env = getMsgQueue().take();

                assertNotNull(env.getBody());
                assertNotNull(env.getBody().getChildrenWithLocalName("c"));
View Full Code Here

            String xpathExpression = "/c/b/a";

            String subscriptionID = msgBrokerClient.subscribe(consumerEPRs[0], null, xpathExpression);

            try {
                msgBrokerClient.publish(null, AXIOMUtil.stringToOM(validMsg));
                msgBrokerClient.publish(null, AXIOMUtil.stringToOM(invalidMsg));

                SOAPEnvelope env = getMsgQueue().take();

                assertNotNull(env.getBody());
View Full Code Here

            String subscriptionID = msgBrokerClient.subscribe(consumerEPRs[0], null, xpathExpression);

            try {
                msgBrokerClient.publish(null, AXIOMUtil.stringToOM(validMsg));
                msgBrokerClient.publish(null, AXIOMUtil.stringToOM(invalidMsg));

                SOAPEnvelope env = getMsgQueue().take();

                assertNotNull(env.getBody());
                assertNotNull(env.getBody().getChildrenWithLocalName("c"));
View Full Code Here

        UUID uuid = UUID.randomUUID();
        count++;
        OMElement omMsg = MsgUtil.createMsg(count, getName(), uuid
            .toString());
        //MsgUtil.print("seding msg", omMsg);
        client.publish(topicExpression, omMsg);

        TimeUnit.SECONDS
            .sleep(getRandomSleepTime(timeIntervalUpperLimit));
      }
View Full Code Here

            String subscriptionID = wseMsgBrokerClient.subscribe(consumerEPRs[0], topic, null);
            System.out.println("topic sub id = " + subscriptionID);

            try {
                wseMsgBrokerClient.publish(topic, msg);
                wseMsgBrokerClient.publish(topic, AXIOMUtil.stringToOM("<foo><bar>Test</bar></foo>"));
            } catch (Exception e) {
                fail(e.getMessage());
            }
View Full Code Here

            String subscriptionID = wseMsgBrokerClient.subscribe(consumerEPRs[0], topic, null);
            System.out.println("topic sub id = " + subscriptionID);

            try {
                wseMsgBrokerClient.publish(topic, msg);
                wseMsgBrokerClient.publish(topic, AXIOMUtil.stringToOM("<foo><bar>Test</bar></foo>"));
            } catch (Exception e) {
                fail(e.getMessage());
            }

            Thread.sleep(2000);
View Full Code Here

            OMElement testNotification = factory.createOMElement("Test", null);

            testNotification.setText("test event for workflow tracking sample");

            publisher.publish(null, testNotification);
            publisher.publish(null, finalNotificationEl);
        } catch (Exception e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
View Full Code Here

            OMElement testNotification = factory.createOMElement("Test", null);

            testNotification.setText("test event for workflow tracking sample");

            publisher.publish(null, testNotification);
            publisher.publish(null, finalNotificationEl);
        } catch (Exception e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
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.