Hi all:
I got a problem when using aspectj with cxf 2.4.1. As
follows, aopPointCuter cannot intercept accountService's interface. My
spring is 2.5.6.
Can aspectj be used with cxf?
<import resource="classpath:META-INF/cxf/cxf.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
<bean
class="org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor"
/>
<aop:aspectj-autoproxy />
<bean id="aopPointCuter" class="aop.AopPointCuter">
</bean>
<jaxws:endpoint id="accountService"
implementor="service.account.impl.AccountServiceImpl"
wsdlLocation="/WEB-INF/wsdl/AccountService.wsdl" address="/AccountService">
</jaxws:endpoint>
@Aspect
public class AopPointCuter implements Ordered {
@Pointcut("execution(* service.account.AccountService..*(..))")
public void accountService() {
}
@Around("( accountService())")
public Object doSomething(ProceedingJoinPoint joinPoint)
throws Throwable {
.........
}
}