-
1. Re: Mutable Objects inside ObjectMessage and rollback behavi
gaohoward Oct 27, 2009 10:36 PM (in response to dcausse)Hi,
You can try to set RedeliveryDelay attribute in your destination configuration file to be something greater than zero.
Howard -
2. Re: Mutable Objects inside ObjectMessage and rollback behavi
dcausse Oct 28, 2009 11:48 AM (in response to dcausse)Hi,
thank you very much, instance are now recreated with RedeliveryDelay greater than 0.
But is it a normal feature?
David. -
3. Re: Mutable Objects inside ObjectMessage and rollback behavi
veitg Jan 20, 2011 8:58 AM (in response to dcausse)Hi.
Sorry to dig this old thread out, but I have the same issue reported with JBoss 5.1.0. Changing the RedeliveryDelay to > 0 fixed it for me too.
To answer your question: according to the jms 1.1 spec (3.10. "Changing the Value of a Received Message"), this is not expected behavior:
"If the consumer modifies a received message, and the message is subsequently redelivered, the
redelivered message must be the original, unmodified message (except for headers and properties
modified by the JMS provider as a result of the redelivery, such as the JMSRedelivered header and
the JMSXDeliveryCount property)."
@JBM-developers: will this be fixed in a 1.x release in the near future? Or maybe it's enough to set RedeliveryDelay to 1 per default?!
Thanks.