You need to make sure that the iterattion code is contained within a single transaction.
> You need to make sure that the iterattion code is
> contained within a single transaction.
Guessed so, but what is the proper way to configure MDBs to automatically start transactions so that any entity beans (transaction-type=Container, trans-attribute=Required) loaded from within the MDB will be included in the same transaction?
Anyways, the particular problem could be solved by moving the code that iterates through the CMR collection inside the entity bean.
I thought MDBs were automatically transacted. I suggest you ask in the JMS forum.