Description
The StreamMessage and BytesMessage now support read-only and write-only states for the message bodies, the other messages need to be updated to honor the read-only states as well.
- TextMessage should throw MessageNotWritableException in the Set method for Text.
- MapMessage should throw MessageNotWritableException in the Set methods for the body.
- all messages should have read-only states for the Properties.
- calling ClearBody on any message returns it to either Write-Only or read / write mode.
- calling ClearProperties on any message returns them to Read / Write mode.
Messages are tagged as read-only when they are sent and when received.
This will result in the message's behaving the same as their JMS and CMS counterparts.