spring-framework/framework-docs/modules/ROOT/pages/integration/jms
Brian Clozel ec87d90c9b Post process outgoing messages in JMS clients
Prior to this commit, the `JmsTemplate` would use `MessagePostProcessor`
for mutating JMS messages before they are being sent, but only if the
method takes a post processor as an argument.
The main use case so far is to mutate messages after they've been
created by a `MessageConverter` from a payload.

This commit updates the `JmsClient` to use `MessagePostProcessor` more
broadly, for all outgoing messages (converted or not). This brings an
interception-like mechanism for clients to enrich the message before
being sent.

This change also updates the `JmsClient` static factories and
introduces a Builder, allowing for more configuration options: multiple
message converters and message post processors.

Closes gh-35271
2025-08-01 15:40:32 +02:00
..
annotated.adoc Consistent line breaks in reference documentation 2025-07-10 19:33:34 +02:00
jca-message-endpoint-manager.adoc Consistent line breaks in reference documentation 2025-07-10 19:33:34 +02:00
namespace.adoc Consistent line breaks in reference documentation 2025-07-10 19:33:34 +02:00
receiving.adoc Merge branch '6.2.x' 2025-07-10 19:42:14 +02:00
sending.adoc Post process outgoing messages in JMS clients 2025-08-01 15:40:32 +02:00
using.adoc Consistent line breaks in reference documentation 2025-07-10 19:33:34 +02:00