org.apache.activemq.network.jms
Class SimpleJmsMessageConvertor
java.lang.Object
org.apache.activemq.network.jms.SimpleJmsMessageConvertor
- All Implemented Interfaces:
- JmsMesageConvertor
public class SimpleJmsMessageConvertor
- extends Object
- implements JmsMesageConvertor
Converts Message from one JMS to another
- Version:
- $Revision: 1.1.1.1 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleJmsMessageConvertor
public SimpleJmsMessageConvertor()
convert
public Message convert(Message message)
throws JMSException
- Convert a foreign JMS Message to a native ActiveMQ Message - Inbound or
visa-versa outbound
- Specified by:
convert
in interface JmsMesageConvertor
- Parameters:
message
-
- Returns:
- the converted message
- Throws:
JMSException
convert
public Message convert(Message message,
Destination replyTo)
throws JMSException
- Specified by:
convert
in interface JmsMesageConvertor
- Throws:
JMSException
setConnection
public void setConnection(Connection connection)
- Specified by:
setConnection
in interface JmsMesageConvertor
Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.