Menu

#5 ObjectMessage loses properties if copied

open
None
5
2004-11-21
2004-11-17
torben
No

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

Discussion

  • Anonymous

    Anonymous - 2004-11-20

    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);

     
  • Alexander Ananiev

    • assigned_to: nobody --> aananiev
     

Log in to post a comment.

MongoDB Logo MongoDB