ObjectMessage loses properties if copied
Status: Alpha
Brought to you by:
aananiev
If an ObjectMessage is created, send to a queue and
received it has lost any of its message properties. The
cause is a bug in MessageUtility.copyMessage() where in
difference to all other types of messages only the
message's content but not the message's properties are
copied.
I attached a source file where this behaviour is fixed
Logged In: YES
user_id=720459
The problem is cause by line #318 (MessageUtility.java)
which reads:
result = new ObjectMessageImpl(((ObjectMessage)
msg).getObject());
instead of:
result = new ObjectMessageImpl((ObjectMessage) msg);