Feb 27th, 2009, 07:18 AM
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
Not sure if I understood you correctly, but I think what you are talking about should be possible with aspects.
Mar 1st, 2009, 07:11 PM
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