You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Justin Bertram (JIRA)" <ji...@apache.org> on 2017/02/28 21:21:45 UTC

[jira] [Updated] (ARTEMIS-1003) Documentation uses incorrect variable in code example for Large Messaging

     [ https://issues.apache.org/jira/browse/ARTEMIS-1003?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Justin Bertram updated ARTEMIS-1003:
------------------------------------
    Fix Version/s: 2.0.0

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