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
 Message consumerTransform(Session session, MessageConsumer consumer, Message message)
          Transforms the given message inside the consumer before being dispatched to the client code
 Message 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


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.