Mike Brock cbrock at redhat.com
Fri Jun 4 12:09:32 EDT 2010

The best thing to do at this point would be to write your own SessionProvider implementation that exposes the HttpSession. You can do this by implementing SessionProvider, and specifying the implementation in your ErraiService.properties with: errai.session_provider_implementation=org.foo.MySessionProvider

The session provider will be passed the HttpSession as the first parameter or getSession();

You should look at the existing HttpSessionProvider implementation.
 
Mike,

Can you elaborate a little?  I implemented my own version of HttpSessionProvider by copying this file into my project and exposing the HttpSession as a getter.

I'm unclear on how to get a reference to that from an arbitrary Errai @Service class that implements MessageCallback. Any thoughts?

Thanks,
Charles