In Spring MVC, an exception's stack trace is logged if it makes it all the way back up to the framework (for example, if there is a NullPointerException). Is there a simple way to do this using Spring's MBeanExporter?
I know that I could have try-catches in the method to do this, but that would lead to clutter. I checked the Spring documentation (Chapter 22 is the one on JMX) and didn't see anything. I also haven't seen anything on SO. I also looked at the source code for MBeanExporter, and there seems to be a way to register listeners for MBean registration, but not for MBean request handling.