Package org.apache.activemq.network.jms
Interface JmsMesageConvertor
-
- All Known Implementing Classes:
SimpleJmsMessageConvertor
public interface JmsMesageConvertorConverts Message from one JMS to another
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.jms.Messageconvert(javax.jms.Message message)Convert a foreign JMS Message to a native ActiveMQ Messagejavax.jms.Messageconvert(javax.jms.Message message, javax.jms.Destination replyTo)Convert a foreign JMS Message to a native ActiveMQ Message - Inbound or visa-versa outbound.voidsetConnection(javax.jms.Connection connection)
-
-
-
Method Detail
-
convert
javax.jms.Message convert(javax.jms.Message message) throws javax.jms.JMSExceptionConvert a foreign JMS Message to a native ActiveMQ Message- Parameters:
message- The target message to convert to a native ActiveMQ message- Returns:
- the converted message
- Throws:
javax.jms.JMSException
-
convert
javax.jms.Message convert(javax.jms.Message message, javax.jms.Destination replyTo) throws javax.jms.JMSExceptionConvert 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.- 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
void setConnection(javax.jms.Connection connection)
-
-