public interface MessageCreatedStrategy
Message instance.
For example to populate the message with custom information that are component specific and not part of the JMS specification.| Modifier and Type | Method and Description |
|---|---|
void |
onMessageCreated(javax.jms.Message message,
javax.jms.Session session,
Exchange exchange,
Throwable cause)
Callback when the JMS message has just been created, which allows custom modifications afterwards.
|
void onMessageCreated(javax.jms.Message message,
javax.jms.Session session,
Exchange exchange,
Throwable cause)
exchange - the current exchangesession - the JMS session used to create the messagecause - optional exception occurred that should be sent as reply instead of a regular bodyCopyright © 2007–2016 The Apache Software Foundation. All rights reserved.