Hello.

If it's confirmed, it means that I can't retrieve the actual resulting
queue the message is sent to ?
I'd need to retrieve it in some event notifiers, out of the Camel
routes code, that spies all the exchanges, the same way I do for
generated files retrieving the header "CamelFileNameProduced".

Not any other way to identify the destination ?

Thanks for your help.

Regards.

Le dim. 7 janv. 2024 à 15:50, Jeremy Ross <jeremy.g.r...@gmail.com> a écrit :
>
> 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