Package org.apache.airavata.wsmg.msgbox.client

Examples of org.apache.airavata.wsmg.msgbox.client.MsgBoxClient.storeMessage()


                builder.append("123456789");
            }

            String msg = String.format("<msg><seq>%d</seq><fill>%s</fill></msg>", i, builder.toString());

            user.storeMessage(msgBoxEpr, timeout, MsgBoxUtils.reader2OMElement(new StringReader(msg)));

            Thread.sleep(200L);
        }

        Iterator<OMElement> iterator = null;
View Full Code Here


        // test publish with Epr
        EndpointReference msgBoxEpr = user.createMessageBox("http://localhost:" + port
                + "/axis2/services/MsgBoxService", timeout);

        System.out.println(msgBoxEpr.toString());
        user.storeMessage(msgBoxEpr, timeout,
                MsgBoxUtils.reader2OMElement(new StringReader("<test>A simple test message</test>")));

        Iterator<OMElement> iterator = user.takeMessagesFromMsgBox(msgBoxEpr, timeout);
        int i = 0;
        if (iterator != null)
View Full Code Here

    EndpointReference msgBoxEpr = client.createMessageBox(configurations
        .getProperty(ConfigKeys.MSGBOX_SERVICE_URL), 500L);

    try {
      client.storeMessage(msgBoxEpr, 500L, MsgBoxUtils
          .reader2OMElement(new StringReader(
              "<test>A simple test message</test>")));
    } catch (XMLStreamException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
View Full Code Here

    EndpointReference msgBoxEpr = client.createMessageBox(configurations
        .getProperty(ConfigKeys.MSGBOX_SERVICE_URL), 500L);

    try {
      client.storeMessage(msgBoxEpr, 500L, MsgBoxUtils
          .reader2OMElement(new StringReader(
              "<test>A simple test message</test>")));
    } catch (XMLStreamException 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.