Uploaded image for project: 'ActiveMQ .Net'
  1. ActiveMQ .Net
  2. AMQNET-193

Add support for read-only bodies and properties for all of the NMS message types

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.1.0
    • 1.2.0
    • ActiveMQ
    • None

    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.

      Attachments

        Activity

          People

            tabish Timothy A. Bish
            tabish Timothy A. Bish
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: