BEA Systems, Inc.

BEA WebLogic Server 9.0 API Reference


weblogic.wtc.gwt
Class TpacallAsyncReplyImpl

java.lang.Object
  extended byweblogic.wtc.gwt.TpacallAsyncReplyImpl
All Implemented Interfaces:
GatewayTpacallAsyncReply, Serializable, TpacallAsyncReply

public final class TpacallAsyncReplyImpl
extends Object
implements GatewayTpacallAsyncReply

This class wraps the original async reply, so that it can be associated with the exact ATMI interface that was used when it was called

See Also:
Serialized Form
Copyright © 2005 BEA Systems, Inc. All Rights Reserved.

Constructor Summary
TpacallAsyncReplyImpl(TpacallAsyncReply originalAsyncReply, TuxedoConnection originalAtmi, Transaction myTransaction, weblogic.wtc.jatmi.gwatmi myGateway)
           
 
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.
 Transaction getTransaction()
          Returns the transaction associated with this request
 void setTargetSubject(weblogic.security.acl.internal.AuthenticatedSubject kid, weblogic.security.acl.internal.AuthenticatedSubject subj)
          Sets the target subject and authenticated subject to be used with this request
 void success(ApplicationToMonitorInterface atmi, CallDescriptor cd, Reply successReply)
          This method is called if the service returned successfully.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TpacallAsyncReplyImpl

public TpacallAsyncReplyImpl(TpacallAsyncReply originalAsyncReply,
                             TuxedoConnection originalAtmi,
                             Transaction myTransaction,
                             weblogic.wtc.jatmi.gwatmi myGateway)
Method Detail

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.

Specified by:
failure in interface TpacallAsyncReply
Parameters:
atmi - The connection associated with this request. Can be used for making other calls on this connection
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)
cd - The call descriptor associated with this request.

getTransaction

public Transaction getTransaction()
Returns the transaction associated with this request

Specified by:
getTransaction in interface GatewayTpacallAsyncReply

setTargetSubject

public void setTargetSubject(weblogic.security.acl.internal.AuthenticatedSubject kid,
                             weblogic.security.acl.internal.AuthenticatedSubject subj)
Description copied from interface: GatewayTpacallAsyncReply
Sets the target subject and authenticated subject to be used with this request

Specified by:
setTargetSubject in interface GatewayTpacallAsyncReply

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

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

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs90
Copyright 2005 BEA Systems Inc.