public class JmsReplyToCacheValueTranslator extends java.lang.Object implements CacheValueTranslator<javax.jms.Destination>
CacheValueTranslator
that retrieves and sets the JMSReplyTo destination of a message.
Note that this can only be used with caches that allow insertion of non-Serializable
objects as the JMS destination
interface is not serializable.
In the adapter configuration file this class is aliased as jms-replyto-cache-value-translator which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
JmsReplyToCacheValueTranslator() |
Modifier and Type | Method and Description |
---|---|
void |
addValueToMessage(AdaptrisMessage msg,
javax.jms.Destination value)
sets the JMSReplyTo destination on the message
|
javax.jms.Destination |
getValueFromMessage(AdaptrisMessage msg)
gets the JMSReplyTo destination from the message
|
public javax.jms.Destination getValueFromMessage(AdaptrisMessage msg) throws CoreException
getValueFromMessage
in interface CacheValueTranslator<javax.jms.Destination>
CoreException
public void addValueToMessage(AdaptrisMessage msg, javax.jms.Destination value) throws CoreException
addValueToMessage
in interface CacheValueTranslator<javax.jms.Destination>
CoreException