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

Christopher L. Shannon commented on AMQ-5857:
---------------------------------------------

You do make a good point about storeContentAndClear not being a great solution 
if you want to stick with a pure JMS client.  I wouldn't expect getText() to be 
called too often but I could see it being useful in some cases like if a client 
was logging full messages before or after a send.  

[~tabish121], What do you think? I could go either way on this. 

> 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)

Reply via email to