[openamq-dev] Reuse of a basic_content object?
Martin Sustrik
sustrik at imatix.com
Sat Nov 10 20:37:57 CET 2007
Hi Elli,
The republish example I've sent earlier seems to work with unlink. Can
you send your test program to the list? I'll have a look.
Martin
Elli Barasch wrote:
> 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
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> openamq-dev mailing list
> openamq-dev at lists.openamq.org
> http://lists.openamq.org/mailman/listinfo/openamq-dev
More information about the openamq-dev
mailing list