Package org.apache.activemq.network.jms
Class SimpleJmsMessageConvertor
java.lang.Object
org.apache.activemq.network.jms.SimpleJmsMessageConvertor
- All Implemented Interfaces:
JmsMesageConvertor
Converts Message from one JMS to another
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.jms.Messageconvert(jakarta.jms.Message message) Convert a foreign JMS Message to a native ActiveMQ Message - Inbound or visa-versa outbound.jakarta.jms.Messageconvert(jakarta.jms.Message message, jakarta.jms.Destination replyTo) Convert a foreign JMS Message to a native ActiveMQ Message - Inbound or visa-versa outbound.voidsetConnection(jakarta.jms.Connection connection)
-
Constructor Details
-
SimpleJmsMessageConvertor
public SimpleJmsMessageConvertor()
-
-
Method Details
-
convert
public jakarta.jms.Message convert(jakarta.jms.Message message) throws jakarta.jms.JMSException Convert a foreign JMS Message to a native ActiveMQ Message - Inbound or visa-versa outbound.- Specified by:
convertin interfaceJmsMesageConvertor- Parameters:
message- The target message to convert to a native ActiveMQ message- Returns:
- the converted message
- Throws:
jakarta.jms.JMSException
-
convert
public jakarta.jms.Message convert(jakarta.jms.Message message, jakarta.jms.Destination replyTo) throws jakarta.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:
convertin interfaceJmsMesageConvertor- 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:
jakarta.jms.JMSException
-
setConnection
public void setConnection(jakarta.jms.Connection connection) - Specified by:
setConnectionin interfaceJmsMesageConvertor
-