Issues while using 2 MDBs together.
843830Jun 22 2004 — edited Jul 6 2004I 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.