org.apache.servicemix.jms.endpoints
Interface DestinationChooser
- All Known Implementing Classes:
- SimpleDestinationChooser
public interface DestinationChooser
A pluggable strategy used to decide which JMS Destination to use for an outbound JMS message
- Version:
- $Revision$
|
Method Summary |
java.lang.Object |
chooseDestination(javax.jbi.messaging.MessageExchange exchange,
java.lang.Object message)
Chooses which JMS destintation to use for the given message. |
chooseDestination
java.lang.Object chooseDestination(javax.jbi.messaging.MessageExchange exchange,
java.lang.Object message)
- Chooses which JMS destintation to use for the given message.
The message may be the "in", "out" or "fault" message.
- Parameters:
exchange - the exchangemessage - the message can be a javax.jbi.messaging.NormalizedMessage,
a javax.jbi.messaging.Fault or an Exception
- Returns:
- a javax.jms.Destination or String for the destination name
Copyright © 2005-2014 FuseSource. All Rights Reserved.