Why does Camel JMS producer remove CamelJmsDestination header from the exchange

Solution Verified - Updated -

Environment

  • JBoss Fuse 6.0

Issue

I noticed that CamelJmsDestination and CamelJmsDestinationName headers are removed from the exchange by the JMS producer. Why doesn't Camel propagate these headers?

Resolution

The JMS producer removes both CamelJmsDestination and CamelJmsDestinationName headers from the exchange and does not propagate them to the created JMS message in order to avoid accidental routing loops. This can happen in scenarios when the message is forwarded to another JMS endpoint.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.