Havret commented on issue #48: AMQNET-625: Content Property of IBytesMessage 
should be idempotent
URL: https://github.com/apache/activemq-nms-amqp/pull/48#issuecomment-554744378
 
 
   @michaelandrepearce Done. Moreover I've changed slightly the name of the 
first test to make it more descriptive. 
   
   The other thing is that I am not sure what should be the expected behavior 
of Content setter when somebody starts messing with Write* methods. Content 
property is a peculiar thing for NMS IBytesMessage and there is no equivalent 
of it in JMS API, thus it would be a futile attempt to look for inspiration in 
qpid-jms, as I used to do to tackle previous problems. 
   
   My implementation mimics what was done in NMS MSMQ:
   
   
https://github.com/apache/activemq-nms-msmq/blob/b6d954d9a97f11459f1b34956aeae675e456dfdd/src/main/csharp/BaseMessage.cs#L42-L47
   
   where Content Property circumvents all the bits related to Binary Writers 
and Readers and exposes direct access to underlying message body. 
   
   @cjwmorgan-sol, @gemmellr, @michaelandrepearce  What do you think? 

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to