I think Camel only sets those headers when a JMS message is received.

https://camel.apache.org/components/4.0.x/jms-component.html#_message_format_when_receiving

On Thu, Jan 4, 2024 at 5:56 AM Ephemeris Lappis <ephemeris.lap...@gmail.com>
wrote:

> Hello.
>
> I've observed that some JMS headers are not updated after a message is
> sent.
>
> For example, using this statement :
>
>  <toD
> uri="jms:{{my.queue.prefix}}.${headers.entity}.{{my.queue.suffix}}?connectionFactory=#myJMS"
> /
>
> I expected to have the header "JMSDestination" set on the Camel
> message with the destination, but instead of that I still have the
> input JMS message's queue name.
>
> The same with the header "JMSMessageID" that seems not to be updated.
>
> Is it normal behavior of the JMS component ?
>
> I use Camel 3.21.3 and ActiveMQ 5.18.3.
>
> Thanks for your help.
>

Reply via email to