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 {
  |     entManager.merge(mail);
  | } catch (Exception e) {
  |        ejbContext.setRollbackOnly();
  |     throw new DBStoringException("Error update", e);
  | }
  | 

Does anyone know how can i be advised of failures?

thanks

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4000848#4000848

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4000848
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to