Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Service Bus
11g Release 1 (11.1.1.5.0)

E15033-03


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, java.lang.String errorCode, java.lang.String errorMessage)
          Called by the transport provider when an internal system error occurs within the transport provider that prevents it from receiving a response (e.g.
 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 OSB 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 OSB 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 OSB runtime can use to extract response payload, meta data, etc

onError

void onError(OutboundTransportMessageContext ctx,
             java.lang.String errorCode,
             java.lang.String errorMessage)
Called by the transport provider when an internal system error occurs within the transport provider that prevents it from receiving a response (e.g. timeouts or connection errors) or when a response is received from an external (business) service but should be treated as an error (e.g. soap faults or application errors). In the former case, the OutboundMessageContext will typically contain no response payload.
Parameters:
ctx - reference to outbound message context object which OSB 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 OSB pipeline context
errorMessage - rpvider-specific error message, will be put into the errorMessage section of $fault variable in OSB pipeline context

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Service Bus
11g Release 1 (11.1.1.5.0)

E15033-03


Copyright © 2008, 2011, Oracle. All rights reserved.