pradeep85841 commented on PR #1659:
URL: https://github.com/apache/activemq/pull/1659#issuecomment-3867582565

   This is based on issue with vm:// and topics (AMQ-9855).
   
   With VMTransport the same ActiveMQMessage instance is dispatched to multiple 
consumers. If one consumer reads or mutates the body (Camel split/processor 
does this), other consumers can see an empty body. This does not happen over 
tcp:// because marshal/unmarshal creates a copy.
   
   copyMessageOnSend only applies at the producer and broker boundary. The 
problem here happens inside the broker during dispatch, so that setting does 
not help.
   
   The change makes VM transport behave consistently with TCP transport and 
avoids shared mutable state
   
   Happy to add a test if needed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to