AnnotationSessionFactoryBean and singleton scoped bean (Spring framework)

Posted by EugeneP on Stack Overflow See other posts from Stack Overflow or by EugeneP
Published on 2010-05-13T07:57:15Z Indexed on 2010/05/13 8:04 UTC
Read the original article Hit count: 218

Filed under:
|
|
|

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?

© Stack Overflow or respective owner

Related posts about java

Related posts about spring