Hi,
I'm having a problem while trying to integrate WebFlow with AOP for logging.
I have a class called LicenseManager.java that implements the following method:
It work perfectly fine on WebFlow alone, but as soon as I config an advice, it complaints that the method cannot be found in the proxy.Code:public XYZProfile getUserProfile(String userid) { //implementation }
Code:<aop:aspectj-autoproxy /> <bean id="customizableTraceInterceptor" class="org.springframework.aop.interceptor.CustomizableTraceInterceptor"> <property name="enterMessage" value="Entering $[methodName]: ($[arguments])"/> <property name="exitMessage" value="Leaving $[methodName]: $[returnValue]"/> </bean> <aop:config> <aop:advisor advice-ref="customizableTraceInterceptor" pointcut="execution(public * com.<our.stuff>.manager..*(..))"/> </aop:config>
We are using:
org.springframework.webflow-2.3.0.RELEASE
org.springframework.core-3.0.5.RELEASE
I've been unable to identify the problem so far.
Am I doing this right? Or is there a better way?
thanks,


Reply With Quote