com.bea.wli.sb.transports
Interface TransportSendListener


public interface TransportSendListener

This is the callback object supplied to the outbound transport allowing him to signal to the system that response processing can proceed. This callback object should be invoked on a separate thread from the request message


Method Summary
 void onError(OutboundTransportMessageContext ctx, String errorCode, String errorMessage)
          Called by the transport provider when an internal system error occurs within the transport provider that prevents it from receiving a response.
 void onReceiveResponse(OutboundTransportMessageContext ctx)
          Called by the transport provider when a response is received from an external (business) service to give the response back to ALSB for processing.
 

Method Detail

onReceiveResponse

void onReceiveResponse(OutboundTransportMessageContext ctx)
Called by the transport provider when a response is received from an external (business) service to give the response back to ALSB for processing. Also used to initiate the response pipeline when there is no response message, i.e. for one-way message processing.

Parameters:
ctx - reference to outbound message context object which ALSB runtime can use to extract response payload, meta data, etc

onError

void onError(OutboundTransportMessageContext ctx,
             String errorCode,
             String errorMessage)
Called by the transport provider when an internal system error occurs within the transport provider that prevents it from receiving a response. The error condition is defined as follows: A non-successful response code (this is provider related, e.g. non 200 or 202 for HTTP/HTTPs, with no associated payload This method should eventually be used to handle errors such as timeouts and connection failures. This method should not be used for returning responses that happen to be errors (e.g. HTTP 500 responses). The OutboundTransportMessageContext is returned for reference purposes, but it will typically contain no response payload.

Parameters:
ctx - reference to outbound message context object which ALSB runtime can use to extract response payload, meta data, etc
errorCode - provider-specific error code, will be put into the errorCode section of $fault variable in ALSB pipeline context
errorMessage - rpvider-specific error message, will be put into the errorMessage section of $fault variable in ALSB pipeline context