[openamq-dev] Reuse of a basic_content object?

Elli Barasch comptonsw at comcast.net
Sat Nov 10 10:10:54 CET 2007


I'm getting an assert when I try to unlink after (re)publishing the 
content. 

I'm confused.  Wouldn't the mere fact that I'm publishing the content 
cause it to be unlinked?  Do you have to destroy or unlink content each 
time you publish? 

Martin Sustrik wrote:
> Elli,
>
>> Is this code snippet valid? Assuming that I do not destroy the 
>> incoming content object, can I simply forward incoming content w/o
>> creating a new outbound content object?
>
> Yes, that kind of usage is perfectly valid. Attached is test program 
> exhibiting the behaviour.
>
> Martin
> ------------------------------------------------------------------------
>
> _______________________________________________
> openamq-dev mailing list
> openamq-dev at lists.openamq.org
> http://lists.openamq.org/mailman/listinfo/openamq-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openamq.org/pipermail/openamq-dev/attachments/20071110/ef986ced/attachment.htm 


More information about the openamq-dev mailing list