This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.
daoPointcut, facadePointcut work okay. cesPointcut doesn't work. All of these are interfaces.
I used some configuration as in Airline example. Using aop around my business facade works okay. Changing method interceptor to ws method lead to no method was invoked. I don't know why.
I'd like to secure entire web service endpoint, not only business facade.
Do you have any hints?
Still doesn't work. Really I don't if it is my fault.
Jdk proxy won't create. On the dbFacade Jdk proxy is created well (see below).
[AspectJAwareAdvisorAutoProxyCreator] - Creating implicit proxy for bean 'dbFacade' with 0 common interceptors and 1 specific interceptors
[JdkDynamicAopProxy] - Creating JDK dynamic proxy: target source is SingletonTargetSource for target object [[email protected]]
But no one for the endpoint!
I found an interesting message in Springs log:
[XmlWebApplicationContext] - Bean 'org.springframework.ws.server.endpoint.mapping.PayloadRootAnnotationMethodEndpointMapping' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
Please do you have any suggestions???
So you mean controller with join to old endpoint? And that
controller has annotations @Endpoint on methods that call
old endpoints methods and proxy will be created on the old endpoint? Am I right? Please could you post part of code?
BTW: I thought using new version 1.0.2 will solve that problem.
Haven't really tried the new version in my last spring-ws project. If it solves the problem, then well and good. If it doesn't, here was my work-around. Let A, B, and C be my endpoints (that is, classes annotated with @Endpoint) implementing interfaces I, II, and III. Now, AOP didn't seem to work here. But if I created some class Z that implemented all the interfaces (I, II, and III) and has dependencies to objects implementing those interfaces, injecting an instances of AOP'd A, B, C will work out fine. Just remember to deactivate the @Endpoint of classes A, B, and C, and @Endpoint Z instead. Moreover, copy the related method annotations over to Z. It's not a nice approach, but it works. But hey, if the newer version fixed this, then well and good!