activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ARTEMIS-1003) Documentation uses incorrect variable in code example for Large Messaging
Date Tue, 28 Feb 2017 21:21:45 GMT

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

ASF subversion and git services commented on ARTEMIS-1003:
----------------------------------------------------------

Commit 03ba53017f72a3eb031bf4b92820ec7affc01335 in activemq-artemis's branch refs/heads/master
from [~sgilda]
[ https://git-wip-us.apache.org/repos/asf?p=activemq-artemis.git;h=03ba530 ]

ARTEMIS-1003: Fix code example in User Guide for Large Messages


> Documentation uses incorrect variable in code example for Large Messaging
> -------------------------------------------------------------------------
>
>                 Key: ARTEMIS-1003
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-1003
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>    Affects Versions: 1.5.3
>            Reporter: Sande Gilda
>             Fix For: 2.0.0
>
>
> The code example for Large Messaging [1] in the "Apache ActiveMQ Artemis User Manual"
uses the 'msg' variable instead of the 'msg2' variable for the 'setOutputStream()' method
after this statement: "To set the output stream when receiving a core message:"
> This is the existing code example:
> {code}
> ClientMessage msg = consumer.receive(...);
> // This will block here until the stream was transferred
> msg.saveOutputStream(someOutputStream);
> ClientMessage msg2 = consumer.receive(...);
> // This will not wait the transfer to finish
> msg.setOutputStream(someOtherOutputStream);
> {code}
> I believe it should be:
> This is the existing code example:
> {code}
> ClientMessage msg = consumer.receive(...);
> // This will block here until the stream was transferred
> msg.saveOutputStream(someOutputStream);
> ClientMessage msg2 = consumer.receive(...);
> // This will not wait the transfer to finish
> msg2.setOutputStream(someOtherOutputStream);
> {code}
>  
> [1] https://activemq.apache.org/artemis/docs/1.0.0/large-messages.html



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message