Announcement Announcement Module
Collapse
No announcement yet.
Session scoped bean : why are afterPropertiesSet/init-method not being re-called ? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Session scoped bean : why are afterPropertiesSet/init-method not being re-called ?

    Hi

    I have a session-scoped bean named "foo", defined using <... scope="session"/> (not using spring2.5 @Scope annotations)

    Whenever a new session is created, and the bean is used, I would like to set bean properties given attributes present in the original http session ; however, I've implemented InitiliazingBean afterPropertiesSet(), and also added an init-method, but none of them are being called whenever a new session bean is returned.

    I've implemented DisposableBean, and I can see the bean being destroyed, as expected.

    What is the expected lifecycle of a session-scoped bean, is it possible to set its properties right after initialization ?

    Thanks if you can help !
    haki

  • #2
    Please post your configuration. When doing so use the [ code][/code ] tags.

    Comment

    Working...
    X