Examples of fireandforget()


Examples of org.apache.axis2.client.ServiceClient.fireAndForget()

            //now close the sequence
            SandeshaClient.closeSequence(serviceClient);
           
            //try and send another msg - this should fail
            try{
              serviceClient.fireAndForget(getPingOMBlock("ping2"));
              fail(); //this should have failed
            }
            catch(Exception e){
              //good
            }
View Full Code Here

Examples of org.apache.axis2.client.ServiceClient.fireAndForget()

      //serviceClient.
    serviceClient.setOptions(clientOptions);
     
    try{
      // 1) Send the application message
      serviceClient.fireAndForget(getPingOMBlock("ping1"));
   
      // 2) Terminate the sequence
      SandeshaClient.terminateSequence(serviceClient);

      // 3) wait for the sequence completion (30 second wait)
View Full Code Here

Examples of org.apache.axis2.client.ServiceClient.fireAndForget()

      // 4) Create a new Sequence to the same endpoint
      SandeshaClient.createSequence(serviceClient, false, null);
     
      // 5) Send the second application message (this should use a new sequence)
      serviceClient.fireAndForget(getPingOMBlock("ping2"));     

      // 6) Terminate the sequence
      SandeshaClient.terminateSequence(serviceClient);

      // 7) wait for the sequence completion (30 second wait)
View Full Code Here

Examples of org.apache.axis2.client.ServiceClient.fireAndForget()

        propertyBean.setSequenceRemovalTimeoutInterval(2, "seconds");
      }
    }
   
    // Send a single ping message
    serviceClient.fireAndForget(getPingOMBlock("ping1"));

    long limit = System.currentTimeMillis() + waitTime;
    Error lastError = null;
    while(System.currentTimeMillis() < limit) {
      Thread.sleep(tickTime); // Try the assertions each tick interval, until they pass or we time out
View Full Code Here

Examples of org.apache.axis2.client.ServiceClient.fireAndForget()

    {
      serviceClient.fireAndForget(getPingOMBlock("ping1"));   
     
      //now deliver the next out of order
      clientOptions.setProperty(SandeshaClientConstants.MESSAGE_NUMBER,new Long(3));
      serviceClient.fireAndForget(getPingOMBlock("ping3"));
 
      String internalSequenceId = SandeshaUtil.getInternalSequenceID(to, sequenceKey);
      waitForMessageToBeAcked(serviceClient, internalSequenceId);
     
      StorageManager mgr = SandeshaUtil.getInMemoryStorageManager(configContext);
View Full Code Here

Examples of org.apache.axis2.client.ServiceClient.fireAndForget()

      clientOptions.setProperty(SandeshaClientConstants.AcksTo,acksTo);
      clientOptions.setTransportInProtocol(Constants.TRANSPORT_HTTP);
      clientOptions.setUseSeparateListener(true);
    }

    serviceClient.fireAndForget(getPingOMBlock("ping1"));
   
    long limit = System.currentTimeMillis() + waitTime;
    Error lastError = null;
    while(System.currentTimeMillis() < limit) {
      Thread.sleep(tickTime); // Try the assertions each tick interval, until they pass or we time out
View Full Code Here

Examples of org.apache.axis2.client.ServiceClient.fireAndForget()

    clientOptions.setAction(pingAction);
    clientOptions.setTo(new EndpointReference (to));
    clientOptions.setProperty(SandeshaClientConstants.UNRELIABLE_MESSAGE, "true");
    serviceClient.setOptions(clientOptions);
   
    serviceClient.fireAndForget(getPingOMBlock("echo1"));
   
    //assertions for the out sequence.
    SequenceReport sequenceReport = SandeshaClient.getOutgoingSequenceReport(serviceClient);
    assertTrue(sequenceReport.getCompletedMessages().isEmpty());
   
View Full Code Here

Examples of org.apache.axis2.client.ServiceClient.fireAndForget()

//    serviceClient.engageModule(new QName ("sandesha2"));
   
    clientOptions.setAction("urn:wsrm:Ping");
    serviceClient.setOptions(clientOptions);
   
    serviceClient.fireAndForget(getPingOMBlock("ping1"));
    serviceClient.fireAndForget(getPingOMBlock("ping2"));
   
    clientOptions.setProperty(SandeshaClientConstants.LAST_MESSAGE, "true");
    serviceClient.fireAndForget(getPingOMBlock("ping3"));
   
View Full Code Here

Examples of org.apache.axis2.client.ServiceClient.fireAndForget()

   
    clientOptions.setAction("urn:wsrm:Ping");
    serviceClient.setOptions(clientOptions);
   
    serviceClient.fireAndForget(getPingOMBlock("ping1"));
    serviceClient.fireAndForget(getPingOMBlock("ping2"));
   
    clientOptions.setProperty(SandeshaClientConstants.LAST_MESSAGE, "true");
    serviceClient.fireAndForget(getPingOMBlock("ping3"));
   
    SequenceReport sequenceReport = null;
View Full Code Here

Examples of org.apache.axis2.client.ServiceClient.fireAndForget()

   
    serviceClient.fireAndForget(getPingOMBlock("ping1"));
    serviceClient.fireAndForget(getPingOMBlock("ping2"));
   
    clientOptions.setProperty(SandeshaClientConstants.LAST_MESSAGE, "true");
    serviceClient.fireAndForget(getPingOMBlock("ping3"));
   
    SequenceReport sequenceReport = null;
     
    boolean complete = false;
    while (!complete) {
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.