Hi Rob,
Thanks for answering my queries ...
But i am not sure what i need to do to create non singleton target objects using proxy.
Isn't the highlighted part of the mapping sufficient to create non singletons.
I am still getting back the handle to the same bean inspite of setting the value to false.
What am i doing wrong or is it a bug in the release i have..
I am using 1.1.2 version of SF
Thanks
Kevin.
<bean id="bean1" class="org.springframework.aop.framework.ProxyFact oryBean">
<property name="singleton"><value>false</value></property> <property name="proxyInterfaces">
<value>com.performixtech.test.IBean1</value>
</property>
<property name="target">
<ref local="beanTarget1"/>
</property>
</bean>

Originally Posted by
robh
Kevin,
In the case of FactoryBeans, the singleton attribute governs the lifecycle of the FactoryBean itself, not the bean it is creating. For ProxyFactoryBean you can indicate whether it should create a singleton or not using the singleton property (setSingleton(false)).
Rob