Package org.apache.wsif

Examples of org.apache.wsif.WSIFCorrelationId


    if (!fieldJmsPort.supportsAsync())
      throw new WSIFException("asynchronous operations not available");

    setAsyncOperation(true);
    WSIFCorrelationId correlId = null;

    try {

      getOperation();
      this.handler = handler;
View Full Code Here


     */
    public WSIFCorrelationId executeRequestResponseAsync(WSIFMessage input)
        throws WSIFException {

        Trc.entry(this, input);
        WSIFCorrelationId id = executeRequestResponseAsync(input, null);
        Trc.exit(id);
        return id;

    }
View Full Code Here

        transport.setAsyncOperation(true);

        invokeRequestResponseOperation(input, null, null);

        transport.setAsyncOperation(false);
        WSIFCorrelationId id = getAsyncRequestID();
        Trc.exit(id);
        return id;

    }
View Full Code Here

        String msgID;
        StringWriter payloadSW = new StringWriter();
        env.marshall(payloadSW, smr, ctx);
        WSIFOperation_ApacheSOAP wsifOp = (WSIFOperation_ApacheSOAP) getWsifOperation();

        WSIFCorrelationId cid;

        // only save op in the correlation service if there's a response handler
        if ( wsifOp.getResponseHandler() == null ) {
            msgID = destination.send(payloadSW.toString(), null);
            cid = new WSIFJMSCorrelationId( msgID );
View Full Code Here

        if (inMsg == null) {
            throw new IllegalArgumentException("input message is null");
        }

    WSIFCorrelationId id = executeRequestResponseAsync(inMsg, null);
    Trc.exit(id);
    return id;

  }
View Full Code Here

    transport.setAsyncOperation("true");

    invokeRequestResponseOperation(inMsg, null, null);

    transport.setAsyncOperation("false");
    WSIFCorrelationId id = getAsyncRequestID();
    Trc.exit(id);
    return id;

  }
View Full Code Here

        WSIFOperation_ApacheAxis wsifOp =
            (WSIFOperation_ApacheAxis) messageContext.getProperty(
                WSIFJmsTransport.WSIFOPERATION);

        WSIFCorrelationId cid;

        // only save op in the correlation service if there's a response handler
        if ( wsifOp.getResponseHandler() == null ) {
           msgID = dest.send( data );
           cid = new WSIFJMSCorrelationId( msgID );
View Full Code Here

      AsyncResponseHandler handler = new AsyncResponseHandler(1); // 2 async calls
      try {
         context.setObjectPart( WSIFConstants.CONTEXT_JMS_PREFIX + "JMSReplyTo",
                                TestUtilities.getWsifProperty("wsif.async.replytoq") );
         op.setContext( context );
         WSIFCorrelationId id = op.executeRequestResponseAsync(input, handler);
         System.out.println( "async operation done, correlation id=" + id.getCorrelationId() );
      } catch (Exception ex) {
       ex.printStackTrace();
       assertTrue( "exception executing async op: " + ex.getMessage(), false );
      }
      int i = 5// 15 seconds timout
View Full Code Here

      try {
         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() );
        
        Object jmsResponse =
            TestUtilities.getJMSAsyncResponse(
                id.getCorrelationId(),
                TestUtilities.getWsifProperty("wsif.async.replytoq2"));

         output = op.createOutputMessage();
         WSIFMessage fault = op.createFaultMessage();
         op.processAsyncResponse( jmsResponse, output, fault );
View Full Code Here

                System.out.println(
                    "WSIFJmsAsyncListener.processResponse called");

            WSIFCorrelationService cs =
                WSIFCorrelationServiceLocator.getCorrelationService();
            WSIFCorrelationId cid =
                new WSIFJMSCorrelationId(msg.getJMSCorrelationID());
            synchronized (cs) {
                so = cs.get(cid);
            }
            if (so != null && so instanceof WSIFOperation) {
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.