We have quite some routes which end with a simple fire and forget
towards a JMS queue. In general, this works fine.

But there is one more thing we would like to do afterwards, and that's
capture and log the JMS message ID in some audit table. For the
logging, we can use some custom bean, but the problem is: HOW can we
get grip on the message ID, which is assigned by the JMS provider (in
this case WebSphere MQ) ?

When looking into the code from JmsProducer.setMessageId(), the MQ
message ID is only available in request-reply configuration, and not
with the "InOnly" case. Is there some "easy" way to capture the ID
from the external JMS provider? Or is the only alternative using self
generated message ID's ?

(Camel 2.6.0 on WebSphere AS 6.1 and WebSphere MQ)

Many thanks in advance!

Tung

Reply via email to