BEA Systems, Inc.

WebLogic Server 8.1 API Reference

weblogic.wtc.jatmi
Interface TpacallAsyncReply

All Known Subinterfaces:
GatewayTpacallAsyncReply

public interface TpacallAsyncReply
extends java.io.Serializable

The object that is called back when a reply for an asyncronous tpacall has been received.

Author:
Copyright © 2004 BEA Systems, Inc. All Rights Reserved.

Method Summary
 void failure(ApplicationToMonitorInterface atmi, CallDescriptor cd, TPException failureReply)
          Called if the service returned with a failure code.
 void success(ApplicationToMonitorInterface atmi, CallDescriptor cd, Reply successReply)
          Called if the service returned successfully.
 

Method Detail

success

public void success(ApplicationToMonitorInterface atmi,
                    CallDescriptor cd,
                    Reply successReply)
Called if the service returned successfully. It contains the reply in the TuxedoReply object, which can be used to correlate the reply with the response using the CallDescriptor object.

Parameters:
atmi - The connection associated with this request. It can be used for making other calls on this connection.
cd - The call descriptor associated with this request.
successReply - The reply from the service.

failure

public void failure(ApplicationToMonitorInterface atmi,
                    CallDescriptor cd,
                    TPException failureReply)
Called if the service returned with a failure code. It contains the reply in the TPReplyException as well as the reason for failure.

Parameters:
atmi - The connection associated with this request. It can be used for making other calls on this connection.
cd - The call descriptor associated with this request.
failureReply - The reply from the service. In some cases this reply may not be from the service itself. For example: when tpacall times out. If it is from the service, then it is an instance of TPReplyException.

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs81