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.

On 2010-06-04, at 10:00 AM, Henry Molina wrote:

thanks, I need to retrieve the ServletContext to integrate with springframework.

Henry



2010/6/4 Heiko Braun <myownwastebin@googlemail.com>
we don't expose the session, but instead you can use SessionContext
to store session state:

SessionContext ctx = SessionContext.get(message)
ctx.setAttribute(a, b);

But be aware that this API is subject to change.

/heiko

On Jun 4, 2010, at 2:49 AM, Henry Molina wrote:

Hi,

I am new to Jboss Errai, I use RPC to invoke services, need to get HttpSession, as I can do?

Ing. Henry Molina Noboa
Software Engineer
AtikaSoft Software Factory
Phone:(+593-2) 2540-077
Mobile:(+593-9) 6313-994
Email: hmolina@atikasoft.com.ec
Web: http://www.atikasoft.com.ec/
Miembro de MachángaraSoft - Parque Tecnológico de Software Quito
_______________________________________________
errai-users mailing list
errai-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/errai-users


_______________________________________________
errai-users mailing list
errai-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/errai-users