org.apache.activemq.network.jms
Class SimpleJmsMessageConvertor
java.lang.Object
org.apache.activemq.network.jms.SimpleJmsMessageConvertor
- All Implemented Interfaces:
- JmsMesageConvertor
public class SimpleJmsMessageConvertor
- extends java.lang.Object
- implements JmsMesageConvertor
Converts Message from one JMS to another
Method Summary |
javax.jms.Message |
convert(javax.jms.Message message)
Convert a foreign JMS Message to a native ActiveMQ Message - Inbound or
visa-versa outbound. |
javax.jms.Message |
convert(javax.jms.Message message,
javax.jms.Destination replyTo)
Convert a foreign JMS Message to a native ActiveMQ Message - Inbound or
visa-versa outbound. |
void |
setConnection(javax.jms.Connection connection)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleJmsMessageConvertor
public SimpleJmsMessageConvertor()
convert
public javax.jms.Message convert(javax.jms.Message message)
throws javax.jms.JMSException
- Convert a foreign JMS Message to a native ActiveMQ Message - Inbound or
visa-versa outbound.
- Specified by:
convert
in interface JmsMesageConvertor
- Parameters:
message
- The target message to convert to a native ActiveMQ message
- Returns:
- the converted message
- Throws:
javax.jms.JMSException
convert
public javax.jms.Message convert(javax.jms.Message message,
javax.jms.Destination replyTo)
throws javax.jms.JMSException
- Convert a foreign JMS Message to a native ActiveMQ Message - Inbound or
visa-versa outbound. If the replyTo Destination instance is not null
then the Message is configured with the given replyTo value.
- Specified by:
convert
in interface JmsMesageConvertor
- Parameters:
message
- The target message to convert to a native ActiveMQ messagereplyTo
- The replyTo Destination to set on the converted Message.
- Returns:
- the converted message
- Throws:
javax.jms.JMSException
setConnection
public void setConnection(javax.jms.Connection connection)
- Specified by:
setConnection
in interface JmsMesageConvertor
Copyright © 2005-2015. All Rights Reserved.