activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <>
Subject Re: Is it possible to generate message-id before sending the JMS message?
Date Thu, 22 Sep 2011 17:36:58 GMT
you would need to pass use your own message impl that extends
ActiveMQMessage and override

on that callback, you will have the messageId and be able to commit
the db transaction. On return from that method the message will be
be sure and call super.onSend() though.

On 22 September 2011 18:09, Martin C. <> wrote:
> Hi,
> I'd like to know the message ID of a message I am going to send before
> actually sending it. Is this possible?
> Reason is that I want to delay sending the JMS messages until my
> database transaction has been comitted, but I already want to record
> the message IDs as correlation IDs in exactly this database
> transaction.
> Best regards,
> Martin


View raw message