Announcement Announcement Module
Collapse
No announcement yet.
problems with singleton beans in spring Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • problems with singleton beans in spring

    Hi There,

    I am developing a web application. Since spring beans are singleton in default i cannot use that scope for my pojo's.
    I have to mark my bean as request / prototype. I thought of going with request scope.
    I want to know if bean is marked as request and after request ends then is that object destroyed by application/ or object is marked for gc or if in case there is going to be out of memory error then this objects will be garbage collected just before jvm cries for out of space error/ nothing happens and object are left hanging waiting for jvm to take suitable action.


    Thanks and Regards
    Patil Abhijeet
Working...
X