Hi,
 I'm working on an integration between Spring security && GWT.
 To do this I've build some spring filter/interceptors etc that use the GWT
serialization.

 It's working fine but I have a strange behavior in the hosted mode when I
need to retrieve the SerializationPolicies.

 My problem:
*     In RemoteServiceServlet:

getServletContext().getResourceAsStream(serializationPolicyFilePath);
==>     Works fine in hosted mode and web mode.

*     In Acegi filter:

request.getSession().getServletContext().getResourceAsStream(serializationPolicyFilePath);
==>     Fails in hosted mode but works in web mode !

My interpretation is that the GWTShellServlet does some magic that allows
the resolution of the serialization policies in hosted mode
(HostedModeServletContextProxy).

Am I right ? And how could I retrieve the serialization policies within a
filter (J2EE) in hosted mode ?

My idea is to insert another filter (before the acegi proxy filter) which
will provide a HostedHttpRequestProxy and a HostedHttpSessionProxy to return
the same HostedModeServletContextProxy provided by the GWTShellServlet.

If my understanding is correct, is there another solution to let j2ee filter
resolution works in hosted environment.

Thanks,
Olivier.


-- 
"Quand le dernier arbre sera abattu, la dernière rivière asséchée, le
dernier poisson péché, l'homme va s'apercevoir que l'argent n'est pas
comestible"
- proverbe indien Cri

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to