|
From: <jas...@ma...> - 2004-10-28 15:59:46
|
On 28 Oct 2004, at 16:36, j=FCrgen h=F6ller [werk3AT] wrote: > I guess all you're missing here is an interface that ProxyFactoryBean=20= > should you use for the proxy: DOH! It might be worth mentioning this in the manual; I tried my best=20 to figure it out from the docs. > This will also remove the implicit CGLIB dependency, automatically=20 > using a JDK dynamic proxy instead. > > <bean id=3D"pooledEchoBean"=20 > class=3D"org.springframework.aop.framework.ProxyFactoryBean"> > <property name=3D"proxyInterfaces"> > <value>javax.jms.MessageListener</value> > </property> > <property name=3D"targetSource"> > <ref local=3D"pooledEchoBeanTargetSource"/> > </property> > </bean> > > ProxyFactoryBean can work without explicitly specified=20 > "proxyInterfaces", but just if there's a direct target object to=20 > analyze: It will proxy all interfaces implemented by the target then,=20= > or create a CGLIB proxy for the target if there are no interfaces. Fantastic! Many thanks j=FCrgen again. I've made this change in CVS and its all=20 working well now. James ------- http://radio.weblogs.com/0112098/ |