com.bea.wli.sb.transports
Class TransportOptions

java.lang.Objectcom.bea.wli.sb.transports.TransportOptions

public class TransportOptions

extends java.lang.Object

Used to supply options for sending or receiving a message. Possibly other usages in the future. There are two styles for using TransportOptions: multiline setup, and single-line use. Here are two examples. First, multiline style:

TransportOptions

setQoS

specifies whether or not “exactly-once” qualify of service can be achieved. In case of transport providers that support transactional semantics this means whether transaction will be rolled back in case of an error.

Parameters:

val - quality of service enum

Returns:

updated tranport options instance.

getQoS

whether or not “exactly-once” qualify of service can be achieved. In case of transport providers that support transactional semantics this means whether transaction will be rolled back in case of an error.

getMode

setThrowOnError

if set, an exception will be thrown to the callee of method TransportManager.receiveMessage() due to an error that occurs during the OSB pipeline processing. The callee will presumably mark the current transaction for rollback. Otherwise, the router manager will send an appropriate response (e.g. a SOAP fault) in the inbound message context instead of throwing an exception.

Returns:

updated transport options instance.

isThrowOnError

public boolean isThrowOnError()

Returns:

whether or not an exception will be thrown to the callee of method TransportManager.receiveMessage() due to an error that occurs during the OSB pipeline processing.

setBlockingThrottling

isBlockingThrottling

public boolean isBlockingThrottling()

isReplyWithFailure

public boolean isReplyWithFailure()

Returns:

whether or not the user has chosen to reply with failure in the message flow of the service. This option gets set by the pipeline runtime and is passed to the inbound transport message context via the close() method

setReplyWithFailure

isReplySync

public boolean isReplySync()

Returns:

whether or not the the response comes in a synchronous fashion. This option gets set by the pipeline runtime when the user enables 'use same Transaction For Response' flag and is passed to the inbound transport message context via the close() method

setMessagePriority

getMessagePriority

public int getMessagePriority()

setOpaqueData

public TransportOptionssetOpaqueData(java.util.Map<java.lang.String,java.lang.Object> data)

Stores opaque (i.e. unspecified/unstructured) data from transport providers. A typical use case is when a transport provider XYZ receives an inbound message, passes it to OSB along with some opaque data and OSB eventually delivers this data to the outbound transport provider, which also happens to be XYZ so it knows precisely how to interpret the data.

Parameters:

data - opaque data, a map of object keyed by string.

Returns:

updated transport options instance

getOpaqueData

public java.util.Map<java.lang.String,java.lang.Object> getOpaqueData()