Didn't know it was that simple ! Thanks a lot :) Now ApplicationStateManager (ASM) can be injected and used.
But there is another problem. I'm still not sure but I don't think web services keep cookie sessions ! So If I facilitate session-id generation and send back a session-id to the client when he logs in using a web-service call. So the client will have to send me that session-id with over successive call. How can I tell ASM to use that session-id to get\set objects specific to that session-id ? I have a strong feeling I'll get another "I don't see a problem?" reply, this is going to be simple too, correct ? :D *---------------------* *Muhammad Gelbana* Java Software Engineer On Fri, Aug 30, 2013 at 9:24 AM, Lance Java <lance.j...@googlemail.com>wrote: > Why can't you use a RequestFilter? > > The HttpServletRequest has been set on RequestGlobals by the time the > RequestFilters are invoked. So you can @Inject HttpServletRequest in your > RequestFilter (or any service called by your RequestFilter). If you need to > wrap the HttpServletRequest, you can @Inject RequestGlobals and call > storeServletRequestResponse(…). > > I don't see a problem? >