Hello.
I have a large application - most of the classes are not wired in any applicationContext file to use Spring. I am trying to find all occurrences of Exceptions being caught and swallowed.
I created my ThrowsAdvice bean and wired everything up in my applicationContext and it works GREAT!! (see my configuration below)
Question - this only catches exceptions from beans wired in this appContext. Is there a way to cover ALL code running in the JVM?? (the classes not using Spring IoC)?
Thanks in advance!!!
Code:<!-- Define the ThrowsAdvice bean --> <bean id="logThrowsAdvice" class="com.oracle.capplan.RemoteThrowsAdvice"/> <!-- Wire the advice to the application code --> <bean class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator"> <property name="beanNames"> <value>*</value> </property> <property name="interceptorNames"> <list> <value>logThrowsAdvice</value> </list> </property> </bean>


Reply With Quote
