0 Replies Latest reply on Jan 12, 2007 5:51 AM by Roberto Perencio

    MDB doesn't catch exceptions

    Roberto Perencio Newbie

      Hi everybody,
      i have a problem: i have a MDB that, after receiving messages from a queue, calls an EJB method to store on DB.
      If the storing raise an exception the ejb doesn't catch the exception, but the transaction rollbacks and, after 10 times, the message is sent to DLQ, without advise.
      In server.log i see the SQL exceptions, but at code level i can't.

      The code in EJB is:

      try {
      } catch (Exception e) {
       throw new DBStoringException("Error update", e);

      Does anyone know how can i be advised of failures?