I successfully use the session in my services using :
getThreadLocalRequest().getSession()
However my application being separated in layers, a method from my service will call another method from Business layer, then calling DAO layer methods.
In DAO layer I would like to access some information kept in session. Here is the way I can see :
- Pass the HttpSession object in every methods ... But I don't want to do that
Are there other ways to do that ?
I'm using GUICE for information, is there some already created provider which would give me the current request session ?
Thanks !