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

This is the object that will be called back when a reply for the tpacall has been received

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

Method Summary
 void failure(ApplicationToMonitorInterface atmi, CallDescriptor cd, TPException failureReply)
          This method is called if the service returned with a failure code of some kind.
 void success(ApplicationToMonitorInterface atmi, CallDescriptor cd, Reply successReply)
          This method is called if the service returned successfully.
 

Method Detail

success

public void success(ApplicationToMonitorInterface atmi,
                    CallDescriptor cd,
                    Reply successReply)
This method is called if the service returned successfully. It will contain the reply in the TuxedoReply object, which can also be used to correlate the reply with the response via the CallDescriptor object

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

failure

public void failure(ApplicationToMonitorInterface atmi,
                    CallDescriptor cd,
                    TPException failureReply)
This method is called if the service returned with a failure code of some kind. It will contain the reply in the TPReplyException as well as the reason for failure.

Parameters:
atmi - The connection associated with this request. Can be used for making other calls on this connection
cd - The call descriptor associated with this request
failureReply - The reply from in the failure case. Note that in some cases this reply may not be from the service itself (for example, when the tpacall times out). If it is from the service then this will be an instanceof TPReplyException

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