Examples of MsgBoxClient


Examples of org.apache.airavata.wsmg.msgbox.client.MsgBoxClient

      System.out.println("unable to load configuration file, "
          + "default settings will be used");
    }

    String msgBoxId = UUID.randomUUID().toString();
    MsgBoxClient client = new MsgBoxClient();

    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();
    }
    Iterator<OMElement> iterator = client.takeMessagesFromMsgBox(msgBoxEpr,
        500L);
    int i = 0;
    if (iterator != null)
      while (iterator.hasNext()) {
        i++;
View Full Code Here

Examples of org.apache.airavata.wsmg.msgbox.client.MsgBoxClient

    public MsgBoxWsaResponsesCorrelator(String msgBoxServiceLoc,AsynchronousInvoker output)
        throws DynamicInfosetProcessorException
    {
        this.invoker = output;
        this.msgBoxServiceLoc = msgBoxServiceLoc;
        msgBoxClient = new MsgBoxClient();
        try {
            msgBoxAddr = msgBoxClient.createMessageBox(msgBoxServiceLoc,5000L);
            try {
                setReplyTo(new WsaEndpointReference(new URI(msgBoxAddr.getAddress())));
            } catch (URISyntaxException e) {
View Full Code Here

Examples of org.apache.airavata.wsmg.msgbox.client.MsgBoxClient

public class MsgboxHandler {

    protected MsgBoxClient msgBoxUser = null;

    public EndpointReference createPullMsgBox(String msgBoxLocation, long timeout) throws MsgBrokerClientException {
        msgBoxUser = new MsgBoxClient();
        EndpointReference msgBoxAddr = null;

        try {
            msgBoxAddr = msgBoxUser.createMessageBox(msgBoxLocation, timeout);
        } catch (RemoteException e) {
View Full Code Here

Examples of org.apache.airavata.wsmg.msgbox.client.MsgBoxClient

        if ((msgBoxAddr.getAllReferenceParameters() == null || msgBoxAddr.getAllReferenceParameters()
                .get(MsgBoxQNameConstants.MSG_BOXID_QNAME).getText() == null)
                && biginIndex == -1)
            throw new MsgBrokerClientException("Invalid Message Box Address");
        this.msgBoxUser = new MsgBoxClient();
        MessagePuller messagePuller = new MessagePuller(msgBoxUser, msgBoxAddr, handler, interval, timeout);
        messagePuller.startPulling();
        return messagePuller;
    }
View Full Code Here

Examples of org.apache.airavata.wsmg.msgbox.client.MsgBoxClient

            formattedEventSink = String.format(format, msgBoxEventSink, msgBoxId);

        }

        if (this.msgBoxUser == null) {
            this.msgBoxUser = new MsgBoxClient();
        }

        String resp = null;
        try {
            resp = msgBoxUser.deleteMsgBox(msgBoxEpr, timeout);
View Full Code Here

Examples of org.apache.airavata.wsmg.msgbox.client.MsgBoxClient

    public MsgBoxWsaResponsesCorrelator(String msgBoxServiceLoc,AsynchronousInvoker output)
        throws DynamicInfosetProcessorException
    {
        this.invoker = output;
        this.msgBoxServiceLoc = msgBoxServiceLoc;
        msgBoxClient = new MsgBoxClient();
        try {
            msgBoxAddr = msgBoxClient.createMessageBox(msgBoxServiceLoc,5000L);
            try {
                setReplyTo(new WsaEndpointReference(new URI(msgBoxAddr.getAddress())));
            } catch (URISyntaxException e) {
View Full Code Here

Examples of org.apache.airavata.wsmg.msgbox.client.MsgBoxClient

public class MsgboxHandler {

    protected MsgBoxClient msgBoxUser = null;

    public EndpointReference createPullMsgBox(String msgBoxLocation, long timeout) throws MsgBrokerClientException {
        msgBoxUser = new MsgBoxClient();
        EndpointReference msgBoxAddr = null;

        try {
            msgBoxAddr = msgBoxUser.createMessageBox(msgBoxLocation, timeout);
        } catch (RemoteException e) {
View Full Code Here

Examples of org.apache.airavata.wsmg.msgbox.client.MsgBoxClient

        if ((msgBoxAddr.getAllReferenceParameters() == null || msgBoxAddr.getAllReferenceParameters()
                .get(MsgBoxQNameConstants.MSG_BOXID_QNAME).getText() == null)
                && biginIndex == -1)
            throw new MsgBrokerClientException("Invalid Message Box Address");
        this.msgBoxUser = new MsgBoxClient();
        MessagePuller messagePuller = new MessagePuller(msgBoxUser, msgBoxAddr, handler, interval, timeout);
        messagePuller.startPulling();
        return messagePuller;
    }
View Full Code Here

Examples of org.apache.airavata.wsmg.msgbox.client.MsgBoxClient

            formattedEventSink = String.format(format, msgBoxEventSink, msgBoxId);

        }

        if (this.msgBoxUser == null) {
            this.msgBoxUser = new MsgBoxClient();
        }

        String resp = null;
        try {
            resp = msgBoxUser.deleteMsgBox(msgBoxEpr, timeout);
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.