Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Issues while using 2 MDBs together.

843830Jun 22 2004 — edited Jul 6 2004
I have two message driven beans, MDB1 and MDB2. An external application first puts a message in MDB2's queue and then eventually puts a different message in MDB1's queue after a few seconds. MDB2 processes the messge and updates the database. MDB1 is supposed to use the data that was just updated by the MDB2, from the database and do his rest of the work. But my problem is, MDB1 kicks off before MDB2 is done doing his database updates and MDB1 never gets the updated data he's supposed to use. I have no control over how/when the messages gets put in the respective queues of the MDBs. Is there any way I can make MDB1 wait until the MDB2 is done and only then get the updated data from the database to do rest of his(MDB1's) work? Any suggestions? please.
Thank you.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 3 2004
Added on Jun 22 2004
6 comments
164 views