public interface

MessagePostProcessor

org.springframework.jms.core.MessagePostProcessor

Class Overview

To be used with JmsTemplate's send method that convert an object to a message. It allows for further modification of the message after it has been processed by the converter. This is useful for setting of JMS Header and Properties.

This often as an anonymous class within a method implementation.

See Also
  • JmsTemplate#convertAndSend(String, Object, MessagePostProcessor)
  • JmsTemplate#convertAndSend(javax.jms.Destination, Object, MessagePostProcessor)
  • MessageConverter

Summary

Public Methods
abstract Message postProcessMessage(Message message)
Apply a MessagePostProcessor to the message.

Public Methods

public abstract Message postProcessMessage (Message message)

Apply a MessagePostProcessor to the message. The returned message is typically a modified version of the original.

Parameters
message the JMS message from the MessageConverter
Returns
  • the modified version of the Message
Throws
if thrown by JMS API methods
JMSException