Class JmsReplyToCacheValueTranslator
java.lang.Object
com.adaptris.core.services.cache.translators.JmsReplyToCacheValueTranslator
- All Implemented Interfaces:
CacheValueTranslator<javax.jms.Destination>
public class JmsReplyToCacheValueTranslator
extends Object
implements CacheValueTranslator<javax.jms.Destination>
Implementation of
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addValueToMessage
(AdaptrisMessage msg, javax.jms.Destination value) sets the JMSReplyTo destination on the messagejavax.jms.Destination
gets the JMSReplyTo destination from the message
-
Constructor Details
-
JmsReplyToCacheValueTranslator
public JmsReplyToCacheValueTranslator()
-
-
Method Details
-
getValueFromMessage
gets the JMSReplyTo destination from the message- Specified by:
getValueFromMessage
in interfaceCacheValueTranslator<javax.jms.Destination>
- Throws:
CoreException
-
addValueToMessage
public void addValueToMessage(AdaptrisMessage msg, javax.jms.Destination value) throws CoreException sets the JMSReplyTo destination on the message- Specified by:
addValueToMessage
in interfaceCacheValueTranslator<javax.jms.Destination>
- Throws:
CoreException
-