public final class ActiveMQMessageTransformation extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
copyProperties(Message fromMessage,
Message toMessage)
Copies the standard JMS and user defined properties from the givem
message to the specified message
|
static ActiveMQDestination |
transformDestination(Destination destination)
Creates a an available JMS message from another provider.
|
static ActiveMQMessage |
transformMessage(Message message,
ActiveMQConnection connection)
Creates a fast shallow copy of the current ActiveMQMessage or creates a
whole new message instance from an available JMS message from another
provider.
|
public static ActiveMQDestination transformDestination(Destination destination) throws JMSException
destination - - Destination to be converted into ActiveMQ's
implementation.JMSException - if an error occurspublic static ActiveMQMessage transformMessage(Message message, ActiveMQConnection connection) throws JMSException
message - - Message to be converted into ActiveMQ's implementation.connection - JMSException - if an error occurspublic static void copyProperties(Message fromMessage, Message toMessage) throws JMSException
fromMessage - the message to take the properties fromtoMessage - the message to add the properties toJMSExceptionCopyright © 2005–2015 FuseSource, Corp.. All rights reserved.