-
Feb 27th, 2009, 07:18 AM
#1
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?
-
Feb 27th, 2009, 02:37 PM
#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
-
Mar 1st, 2009, 07:11 PM
#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.
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
-
Forum Rules