Package org.apache.airavata.wsmg.client

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


    } catch (InterruptedException ie) {

      try {
        // unsubscribe from the topic.
        client.unSubscribe(subscriptionId);
       
      } catch (MsgBrokerClientException e) {

        e.printStackTrace();
        System.out.println("unable to unsubscribe, ignoring");
View Full Code Here


    } catch (InterruptedException ie) {

      try {
        // unsubscribe from the topic.
        client.unSubscribe(subscriptionId);
      } catch (MsgBrokerClientException e) {

        e.printStackTrace();
        System.out.println("unable to unsubscribe, ignoring");
      }
View Full Code Here

    } catch (InterruptedException ie) {

      try {
        // unsubscribe from the topic.
        client.unSubscribe(subscriptionId);
      } catch (MsgBrokerClientException e) {

        e.printStackTrace();
        System.out.println("unable to unsubscribe, ignoring");
      }
View Full Code Here

        }

        try {
            WseMsgBrokerClient client = new WseMsgBrokerClient();
            client.init(this.brokerURL.toString());
            client.unSubscribe(this.subscriptionId);

            MsgboxHandler msgboxHandler = new MsgboxHandler();

            logger.debug("Unsubscribing the messagebox that was destroyed," + " SubscriptionID:" + this.subscriptionId);
View Full Code Here

                // TODO Auto-generated catch block
                e.printStackTrace();
                fail("invalid xml recieved: " + e.getMessage());
            }

            wseMsgBrokerClient.unSubscribe(subscriptionID);
            wseMsgBrokerClient.shutdownConsumerService();

        } catch (AxisFault e) {
            e.printStackTrace();
            fail("unexpected exception occured");
View Full Code Here

                // TODO Auto-generated catch block
                e.printStackTrace();
                fail("invalid xml recieved: " + e.getMessage());
            }

            msgBrokerClient.unSubscribe(subscriptionID);
            msgBrokerClient.shutdownConsumerService();

        } catch (AxisFault e) {
            e.printStackTrace();
            fail("unexpected exception occured");
View Full Code Here

        if (this.xs != null) {
            xs.stop();
            WseMsgBrokerClient client = new WseMsgBrokerClient();
            client.init(this.brokerURL);
            try {
                client.unSubscribe(this.subscriptionID);
            } catch (MsgBrokerClientException e) {
                logger.error("axisFault occured on unsubscribing subscription ID :" + this.subscriptionID, e);
                e.printStackTrace();
            }
        } else if (this.messageBoxNotificationHandler != null) {
View Full Code Here

    } catch (InterruptedException ie) {

      try {
        // unsubscribe from the topic.
        client.unSubscribe(subscriptionId);

      } catch (MsgBrokerClientException e) {

        e.printStackTrace();
        System.out.println("unable to unsubscribe, ignoring");
View Full Code Here

        try {
            Thread.sleep(10000L);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        brokerClient.unSubscribe(subscriptionID);
        puller.stopPulling();
        System.out.println("Delete message box response :  "
                + brokerClient.deleteMsgBox(msgBoxEpr, 500L));

    }
View Full Code Here

        try {
            Thread.sleep(10000L);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        brokerClient.unSubscribe(subscriptionID);
        Assert.assertEquals(brokerLocation,"http://localhost:" + TestUtilServer.TESTING_PORT + "/axis2/services/EventingService");
        tearDown();
    }
}
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.