Hi,
I am having problems with a very simple advice which is not getting called at all.
I am using annotations and have two mettods in the class (annotated @Aspect) with defined as follows:
Code:@Pointcut("execution(public * *(..))") public void dbProcessPointCut() { }In our Spring config I have tried both the following:Code:@Around("dbProcessPointCut()") public Object dbProcessAdvice(ProceedingJoinPoint joinPoint) throws Throwable { LOG.debug("EXECUTING " + joinPoint.getSignature()); Object o = joinPoint.proceed(); LOG.debug("RETURNING " + joinPoint.getSignature()); return o; }
Code:<aop:aspectj-autoproxy/>Once the web-app is running the advice is just not getting called, if I debug the app a break point on my advice is never hit and it seems that the class is not even created. This advice is in a web-app with JPA/Hibernat/Transactional integration and they all seem to be working fine.Code:<aop:aspectj-autoproxy proxy-target-class="true"/>
Any advice anyone can offer is much appreciated.
Regards,
Chris.


Reply With Quote

