0 Replies Latest reply on Feb 26, 2004 2:03 AM by guslid

    Sessionbean transaction vs MDB onMessage

    guslid Newbie

      I am using JBoss3.2.3, and a session bean calling an MDB to do some server-side work (generating side-effects of the call).

      The session bean creates entitybeans and calls the mdb inside the same transaction. My understanding from documentation is that the message will not actually be sent until the transaction commits.

      However, entering the MDBs onMessage() I sometimes get an "Entity not found" exception when trying to retrieve the entity created inside the sessionbean transaction. Catching the exception and retrying after 10ms will succeed within 5 tries. It seems to me that this behaviour contradicts documentation.

      Correct or what have I misunderstood/misconfigured?