public class JmsReplyToDestination extends java.lang.Object implements MessageDrivenDestination
Implementation of ProduceDestination
which resolves the JMS Destination from the JMSReplyTo object metadata.
In the adapter configuration file this class is aliased as jms-reply-to-destination which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
JmsReplyToDestination()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDestination(AdaptrisMessage msg)
Creates a new
ProduceDestination based on object metadata |
java.lang.String |
getObjectMetadataKey() |
javax.jms.Destination |
retrieveJmsDestination(AdaptrisMessage msg)
Gets the JMS Destination as stored in object metadata.
|
void |
setObjectMetadataKey(java.lang.String objectMetadataKey)
Set the object metadata key that will be used to derive the destination.
|
public java.lang.String getDestination(AdaptrisMessage msg) throws CoreException
ProduceDestination
based on object metadata
As this uses object metadata, the toString() method is called on the object that is returned from metadata
getDestination
in interface ProduceDestination
msg
- the message to processString
destination nameCoreException
- wrapping any underlying Exception
spublic javax.jms.Destination retrieveJmsDestination(AdaptrisMessage msg) throws CoreException
msg
- the AdaptrisMessageCoreException
public java.lang.String getObjectMetadataKey()
public void setObjectMetadataKey(java.lang.String objectMetadataKey)
objectMetadataKey
- JmsConstants.OBJ_JMS_REPLY_TO_KEY