Uploaded image for project: 'JBoss A-MQ'
  1. JBoss A-MQ
  2. ENTMQ-2360

OpenWire client: setObjectProperty() fails on ActiveMQBytesMessage

XMLWordPrintable

    • +

      After receiving a JMS BytesMessage (ActiveMQBytesMessage), calling:

      {{message.clearProperties();
      message.setObjectProperty("key","value" );
      }}
      fails with MessageNotWriteableException.

      *According to the spec
      *When a client receives a message, its properties are in read-only mode. If a client attempts to set properties at this point, a MessageNotWriteableException is thrown. If clearProperties is called, the properties can now be both read from and written to. Note that header fields are distinct from properties. Header fields are never in read-only mode.

      Ref: https://issues.apache.org/jira/browse/AMQ-7291

            gtully@redhat.com Gary Tully
            rhn-support-lakagwu Lami Akagwu
            Gerhardus Johannes Petrus Maria te Dorsthorst
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: