Pergunta de entrevista da empresa Marriott International

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

Resposta da entrevista

Sigiloso

30 de jun. de 2011

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.