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