[ http://issues.apache.org/jira/browse/QPID-122?page=comments#action_12451947 ] Martin Ritchie commented on QPID-122: -------------------------------------
BytesMessage is correct. > JMS*Message do not throw MessageNotWriteableException when setting value on a > delivered message. > ------------------------------------------------------------------------------------------------ > > Key: QPID-122 > URL: http://issues.apache.org/jira/browse/QPID-122 > Project: Qpid > Issue Type: Bug > Components: Java Client > Affects Versions: M1 > Reporter: Martin Ritchie > Assigned To: Martin Ritchie > Fix For: M2 > > > As per http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/jms/Message.html > Attempting to set a value on a delivered message should throw an exception.. > Test updated (but not commited) to confirm. > Add this after > actual.add(m.getText()); > in check() > try > { > m.setText("Test text"); > Assert.fail("Message should not be writeable"); > } > catch (MessageNotWriteableException mnwe) > { > //normal execution > } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
