activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <tabish...@gmail.com>
Subject Re: Modifying consumed message (AcvtiveMQ-CPP)
Date Wed, 29 Aug 2012 12:46:18 GMT
On Wed, 2012-08-29 at 13:35 +0100, spam trap wrote: 
> I need to modify a consumed message (add new properties & change
> payload) and then send it.  I know I can't do this directly as a
> consumed message is read-only.  However I also find that a cloned copy
> is also read-only.
> 
> How can I achieve this?
> 

Sounds like a bug, you should open a Jira issue and attach a test case.

You can reset the read-only flags manually by casting down to the
activemq::commands::Message type and calling the methods
setReadOnlyProperties and setReadOnlyBody.

-- 
Tim Bish
Sr Software Engineer | FuseSource Corp
tim.bish@fusesource.com | www.fusesource.com
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/


Mime
View raw message