Announcement Announcement Module
Collapse
No announcement yet.
Is it possible to create a http session aware bean? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Is it possible to create a http session aware bean?

    For some reasons, we need get a object from the httpsession. This object is necessary, even for the service bean, I want to create something like a http session aware bean to get this object for session, so that other beans needn't operate session and can get session object from this session aware bean. Does anyone know how to achieve this?

  • #2
    Not sure if I understood you correctly, but I think what you are talking about should be possible with aspects.

    http://static.springframework.org/sp...#aop-ataspectj

    Comment


    • #3
      why would you want to create a session aware bean? beans were never intended to be so. you could make the bean aware of the spring context as an alternative.

      Comment

      Working...
      X