Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.5.3
-
None
-
None
Description
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:
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);
I believe it should be:
This is the existing code example:
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);
[1] https://activemq.apache.org/artemis/docs/1.0.0/large-messages.html
Attachments
Issue Links
- links to