Session Management in GWT without RPC

83 Views Asked by At

In a new GWT project (running in Tomcat), instead of using RPC, I'm using RestyGWT and Jersey on the server side for my communication. With RPC, sessions could be created and managed with getThreadLocalRequest().getSession(). As far as I know, the backing HttpServletRequest is managed by GWT/Tomcat.

How can I accomplish the same thing using Jersey?

1

There are 1 best solutions below

1
Thomas Broyer On BEST ANSWER

The same:

@Context HttpServletRequest request;

then

request.getSession()