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

clebert suconic closed ARTEMIS-1003.
------------------------------------

> 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.4.14#64029)

Reply via email to