PDA

View Full Version : Around Advice on HttpInvokerProxy?



dhicks
Jun 6th, 2005, 10:31 AM
I'd like to put an around advice on all the methods of my client-side service proxies. I'm currently using HttpInvokerProxyFactoryBean to create those service proxies. I've created around advices on concrete classes before, but this seems a little strange. Can you use the same method to wrap up method calls on service proxies? Having looked at the API docs, HttpInvokerProxyFactoryBean does not provide a setInterceptors() method, so it seems unlikely. Is there perhaps another way to do what I want to do?

Thanks,
David

dhicks
Jun 6th, 2005, 02:02 PM
I guess I should add that I also tried to take a bean created from HttpInvokerProxyFactoryBean and pass it as the target into org.springframework.aop.framework.ProxyFactoryBean . This failed on initialization, so I'm assuming that ProxyFactoryBean wants a concrete class instead of a proxy.

dhicks
Jun 6th, 2005, 03:12 PM
Found my answer in this thread...
http://forum.springframework.org/showthread.php?t=10321
Sorry about the extra bandwidth.