Hello,
I have a CMP bean and a session bean.
My session bean has this method:


  |     public void updateVariable(VariableValue variableValue) {
  |             VariableLocal variable;
  |             
  |             try {
  |                     variable = 
VariableUtil.getLocalHome().findByPrimaryKey(variableValue.getPrimaryKey());
  |                     variable.setVariableValue(variableValue);
  |             } catch (Exception e) {
  |                 System.out.println("exception 0");
  |             }
  | 
and I'm calling it from a Struts action.
The table has a unique constraint on some fileds, and I want to catch the exceptions 
on this updateVariable method in order to flag them for the presentation layer to show 
an error. The exception is correctly catched (as a 
TransactionRolledBackLocalException), however, the exception is also logged by JBoss.
What do I have to change to make JBoss not log this kind of exceptions, as I don't 
want them to show up on the logs?

Thanks in advance

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848038


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to