Hi, I want to (in my MDB) to set some properties on incoming messages. It appears that all messages are read only. So after making them writable by copying the properties, clearing the properties, then resetting the original properties plus the properties that I want to set. After that if the onMessage method fails and I rollback my transaction I will get the message redelivered to me in the future. When I get the message redelivered to me the message properties that I set on it earlier aren't there. How can I get message properties that I set on the message in my onMessage method of my MDB to persist?
Thanks for any help,
Read the spec. A receiver cannot modify the properties of a message in a way
that the affects the server.
It can reset the message and modify the properties, but this just modifies its
own copy in preparation for *sending* somewhere else.