You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Bjørn T Johansen <bt...@havleik.no> on 2009/02/06 08:57:50 UTC
advisoryForConsumed and orignalMessageId == null?
I am trying out the advisoryForConsumed advisory but the originalMessageId == null..
Is this not the way to get the original message id:
message.getStringProperty("orignalMessageId");
Is there some other way that should be used instead?
Regards,
BTJ
--
-----------------------------------------------------------------------------------------------
Bjørn T Johansen
btj@havleik.no
-----------------------------------------------------------------------------------------------
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"
-----------------------------------------------------------------------------------------------
Re: advisoryForConsumed and orignalMessageId == null?
Posted by Gary Tully <ga...@gmail.com>.
Hi Bjørn,
I think that may be a copy n' paste error in the documentation. The
payload in that advisory message is the original message, so there is
really no need for additional properties.
You need to do something like:
Message msg = advisoryConsumer.receive(1000);
ActiveMQMessage message = (ActiveMQMessage) msg;
ActiveMQMessage originalMessage = (ActiveMQMessage)
message.getDataStructure();
....
Gary.
2009/2/9 Bjørn T Johansen <bt...@havleik.no>:
> No one knows why this is null?
>
> BTJ
>
> On Fri, 6 Feb 2009 08:57:50 +0100
> Bjørn T Johansen <bt...@havleik.no> wrote:
>
>> I am trying out the advisoryForConsumed advisory but the originalMessageId == null..
>> Is this not the way to get the original message id:
>>
>> message.getStringProperty("orignalMessageId");
>>
>> Is there some other way that should be used instead?
>>
>>
>> Regards,
>>
>> BTJ
>>
>
--
http://blog.garytully.com
Open Source SOA
http://FUSESource.com
Re: advisoryForConsumed and orignalMessageId == null?
Posted by Bjørn T Johansen <bt...@havleik.no>.
No one knows why this is null?
BTJ
On Fri, 6 Feb 2009 08:57:50 +0100
Bjørn T Johansen <bt...@havleik.no> wrote:
> I am trying out the advisoryForConsumed advisory but the originalMessageId == null..
> Is this not the way to get the original message id:
>
> message.getStringProperty("orignalMessageId");
>
> Is there some other way that should be used instead?
>
>
> Regards,
>
> BTJ
>