Package org.apache.wsif

Examples of org.apache.wsif.WSIFCorrelationId


            WSIFCorrelationServiceLocator.getCorrelationService();
        assertTrue(cs == cs2);

        try {

            WSIFCorrelationId cid = new WSIFJMSCorrelationId("1");
            cs.put(cid, "petra", (long) 0);

            cid = new WSIFJMSCorrelationId("2");
            cs.put(cid, "ant", (long) 0);
View Full Code Here


                context.setObjectPart(
                    WSIFConstants.CONTEXT_JMS_PREFIX + "JMSReplyTo",
                    TestUtilities.getWsifProperty("wsif.async.replytoq2"));
                operation.setContext(context);

                WSIFCorrelationId id =
                    operation.executeRequestResponseAsync(inputMessage);
                System.out.println(
                    "async operation done, correlation id="
                        + id.getCorrelationId());

                Object jmsResponse =
                    TestUtilities.getJMSAsyncResponse(
                        id.getCorrelationId(),
                        TestUtilities.getWsifProperty("wsif.async.replytoq2"));

                operationSucceeded =
                    operation.processAsyncResponse(
                        jmsResponse,
View Full Code Here

          "" + spa3);
      }

      op.setContext(context);

      WSIFCorrelationId id =
        op.executeRequestResponseAsync(inMsg, abHandler);
      assertTrue(
        "null correlation id returned from async request!",
        id != null);
View Full Code Here

            WSIFMessage context = op.getContext();
            context.setObjectPart( WSIFConstants.CONTEXT_JMS_PREFIX + "JMSReplyTo",
                                   TestUtilities.getWsifProperty("wsif.async.replytoq") );
            op.setContext( context );

            WSIFCorrelationId id = op.executeRequestResponseAsync(inMsg, abHandler);
            assertTrue("null correlation id returned from async request!", id != null );

            int i = 10;
            while (i-- > 0 && !abHandler.isDone()) {
                System.out.println( "waiting for async responses - " + i );
View Full Code Here

  private WSIFMessage doAsyncOp(WSIFOperation op, WSIFMessage input, WSIFMessage context) throws WSIFException{
      AsyncResponseHandler handler = new AsyncResponseHandler(1); // 2 async calls
      context.setObjectPart( WSIFConstants.CONTEXT_JMS_PREFIX + "JMSReplyTo",
                             TestUtilities.getWsifProperty("wsif.async.replytoq") );
      op.setContext( context );
      WSIFCorrelationId id = op.executeRequestResponseAsync(input, handler);

      int i = 5// 15 seconds timout
      while ( i-- > 0 && !handler.isDone() ) {
         System.out.println( "async requests sent, waiting for responses - " + i );
       try {
View Full Code Here

         context.setObjectPart( WSIFConstants.CONTEXT_JMS_PREFIX + "JMSReplyTo",
                                TestUtilities.getWsifProperty("wsif.async.replytoq2") );
         context.setObjectPart( "testJMSnoHandler", "true" );
         op.setContext( context );
         WSIFCorrelationId id = op.executeRequestResponseAsync( input );
         System.out.println( "async operation done, correlation id=" + id.getCorrelationId() );
         op = null;
        
        Object jmsResponse =
            TestUtilities.getJMSAsyncResponse(
                id.getCorrelationId(),
                TestUtilities.getWsifProperty("wsif.async.replytoq2"));
        
         WSIFCorrelationService cs =
            WSIFCorrelationServiceLocator.getCorrelationService();
         Object o;
View Full Code Here

TOP

Related Classes of org.apache.wsif.WSIFCorrelationId

Copyright © 2018 www.massapicom. 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.