Hello, I have a session bean with a method void updateCountry(CountryValue value)
This method will instantiate a Country bean (with the primary key) and then call the setCountryValue method on the Country bean. Country is mapped as CMP, and the table has some unique constraints. If the data fails to be inserted on the DB (i.e. the unique constraint fails), I get a TransactionRolledbackException logged on the screen. My question is: How can I catch that exception in the updateCountry method? I have a catch for FinderException, NamingException and Exception, and it is not catching it. It seems to me that the exception is being thrown inside JBoss, and I cannot get it on the beans. How can I achieve that? My setCountryValue method is abstract, and is the one that XDoclet automatically generates for me. Thanks in advance! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3840803#3840803 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3840803 ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
