Results 1 to 3 of 3

Thread: Is it possible to create a http session aware bean?

  1. #1
    Join Date
    Jan 2009
    Posts
    12

    Default 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. #2

    Default

    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

  3. #3
    Join Date
    Dec 2008
    Posts
    22

    Default

    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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •