| java.lang.Object com.sun.jbi.messaging.ExchangeFactory
ExchangeFactory | public class ExchangeFactory implements javax.jbi.messaging.MessageExchangeFactory(Code) | | A message exchange factory is used used to create new instances of
MessageExchange. Service consumers use these factories to create message
exchanges when initiating a new service request. Message exchange factories
are created using the javax.jbi.component.ComponentContext given to the
component during its initialization (see javax.jbi.component.ComponentLifeCycle ).
There are a variety of ways to creating such factories, each of which creates
a context that is used to provide some of the default properties of
MessageExchange instances created by the factory instances. For example,
a factory can be created for a particular endpoint, ensuring that all
exchanges created by the factory have that endpoint set as the default
endpoint property of the exchange. This allows components to retain
factories as a way of aligning internal processing context with the context
contained in the factory, ensuring that the exchanges created consistently
reflect that context.
author: Sun Microsystems, Inc. |
|
|