If an MDB writes to a database and the database goes down, how would design a solution so that messages in the queue do not get lost
Sigiloso
You can design your MDB in such a way that when an exception occurs, you can make it write to another queue which persits the message into a file. Later on when the DB comes up, read the file and repopulate the queue.