10 Replies Latest reply on Aug 4, 2006 10:25 AM by gavin.king

    Session Listener: @Startup for session scoped component

    liudan2005

      At moment, if you have @Startup in your class, your component gets initialised no matter it's session scoped or application scoped. In some occasions, you might want to do some initialization and outject the component when session is created. For example, you might need to retrive the user info for personalized home page. In this case, it would be nice to have a session scoped component that gets trigger when session is created. i.e. a session scoped component with @Startup annotation should be triggered only when a new session is created.

      Had a look at seam source code and I think it should be easy to implement this by adding some code to SeamListener and Lifecycle.