You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Benjamin Graf (JIRA)" <ji...@apache.org> on 2015/06/29 20:32:08 UTC

[jira] [Comment Edited] (AMQ-5857) Message content stored twice while sending

    [ https://issues.apache.org/jira/browse/AMQ-5857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14606015#comment-14606015 ] 

Benjamin Graf edited comment on AMQ-5857 at 6/29/15 6:31 PM:
-------------------------------------------------------------

Well, do you think anyone would call getText() anymore after calling setText()? I think calling storeContentAndClear() is not a good solution esspecially if your using JMS API (eg. camel-jms) and do not want to depend on ActiveMQ proprietary API. Why not use storeContentAndClear in beforeMarshall()?


was (Author: graben):
Well, do you think anyone would call getText() anymore after calling setText()? I think calling storeContentAndClear() is not a good solution esspecially if your using JMS API (eg. camel-jms) and do not want to depend on ActiveMQ proprietary API.

> Message content stored twice while sending
> ------------------------------------------
>
>                 Key: AMQ-5857
>                 URL: https://issues.apache.org/jira/browse/AMQ-5857
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JMS client
>    Affects Versions: 5.7.0, 5.8.0, 5.9.0, 5.10.0, 5.11.0
>            Reporter: Benjamin Graf
>
> The storeContent method in ActiveMQTextMessage does not clean text field after storing content. Therefor the message temporary exists twice which can lead to OOM problems for large or many text messages concurrently processing. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)