TransactionProxyFactoryBean for non-singleton
The Javadoc for org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean says,
Quote:
“This class is intended to cover the typical case of declarative transaction demarcation: namely, wrapping a (singleton) target object with a transactional proxy, proxying all the interfaces that the target implements.”
(emphasis added).
I can't quite get my arms around why this is only possible with singleton classes. Is this truly the case? Or is the singleton just a recommendation and I have other problems?
- Justin Makeig