public final class JmsMessageTransformation extends Object
Constructor and Description |
---|
JmsMessageTransformation() |
Modifier and Type | Method and Description |
---|---|
static void |
copyProperties(JmsConnection connection,
javax.jms.Message source,
javax.jms.Message target)
Copies the standard JMS and user defined properties from the given source
message to the specified target message.
|
static JmsUnresolvedDestinationTransformer |
getUnresolvedDestinationTransformer() |
static void |
setUnresolvedDestinationHandler(JmsUnresolvedDestinationTransformer handler) |
static JmsDestination |
transformDestination(JmsConnection connection,
javax.jms.Destination destination)
Creates a an available JMS message from another provider.
|
static JmsMessage |
transformMessage(JmsConnection connection,
javax.jms.Message message)
Creates a new JmsMessage object and populates it using the details of
the given Message.
|
public static JmsDestination transformDestination(JmsConnection connection, javax.jms.Destination destination) throws javax.jms.JMSException
connection
- The Connection instance that is requesting the transformation.destination
- Destination to be converted into Jms's implementation.javax.jms.JMSException
- if an error occurs during the transformation.public static JmsMessage transformMessage(JmsConnection connection, javax.jms.Message message) throws javax.jms.JMSException
connection
- The JmsConnection where this transformation is being initiated.message
- Message to be converted into the clients implementation.javax.jms.JMSException
- if an error occurs during the transform.public static void copyProperties(JmsConnection connection, javax.jms.Message source, javax.jms.Message target) throws javax.jms.JMSException
propertyNames
method.connection
- The Connection instance that is requesting the transformation.source
- the message to take the properties fromtarget
- the message to add the properties tojavax.jms.JMSException
- if an error occurs during the copy of message properties.public static void setUnresolvedDestinationHandler(JmsUnresolvedDestinationTransformer handler)
public static JmsUnresolvedDestinationTransformer getUnresolvedDestinationTransformer()
Copyright © 2013–2016 The Apache Software Foundation. All rights reserved.