3 Replies Latest reply on Jan 20, 2011 8:58 AM by Veit Guna

    Mutable Objects inside ObjectMessage and rollback behaviour.

    David Causse Newbie


      with JBM shipped with JBossAS 5.1.0, i suspect that ObjectMessage body instances are cached.
      In a transaction I modify my object issued from ObjectMessage.getObject(), then something goes wrong and I do rollback on the JMS session.
      When the broker send the message a second time I get the same instance as the first failed receive with modifications made on my object in the previous failed transaction, It is not what I expect.
      So my question is : is this normal behaviour?
      Can I disable this cache and have everything rollbacked and my object deserialized again?

      Thank you for your help.