Package org.apache.activemq
Interface MessageTransformer
-
- All Known Implementing Classes:
MessageTransformerSupport
public interface MessageTransformer
A plugin strategy for transforming a message before it is sent by the JMS client or before it is dispatched to the JMS consumer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Message
consumerTransform(Session session, MessageConsumer consumer, Message message)
Transforms the given message inside the consumer before being dispatched to the client codeMessage
producerTransform(Session session, MessageProducer producer, Message message)
Transforms the given message inside the producer before it is sent to the JMS bus.
-
-
-
Method Detail
-
producerTransform
Message producerTransform(Session session, MessageProducer producer, Message message) throws JMSException
Transforms the given message inside the producer before it is sent to the JMS bus.- Throws:
JMSException
-
consumerTransform
Message consumerTransform(Session session, MessageConsumer consumer, Message message) throws JMSException
Transforms the given message inside the consumer before being dispatched to the client code- Throws:
JMSException
-
-