AnnotationSessionFactoryBean and singleton scoped bean (Spring framework)
- by EugeneP
I define a bean of type AnnotationSessionFactoryBean for using in a web-app.
If I do not explicitly define it as NOT singleton, it must be singleton.
Now, it is bound to the current thread.
It means it cannot be a singleton.
Can you explain this puzzle?