when using DI container like Spring or Guice, there might be only one
servlet (diServlet) , that handle the many GWT-RPC.
In the web.xml we can use a wild card like: "*.gwt" to map the diServlet.
AFAIK this is not possible in Hosted Mode because the ModuleDefSchema
(dev/core/src/com/google/gwt/dev/cfg/ModuleDefSchema.java)
and ModuleDef(dev/core/src/com/google/gwt/dev/cfg/ModuleDef.java) doesn't
support the "wildcard" mapping:
#
# Not supported in GWT 1.5.2
#
<servlet
class="org.springframework.web.context.support.HttpRequestHandlerServlet"
path="*.gwt" />
#
#
Patch provided (gwt 1.5.2) returns the wildcard mapping only it match and
if no "fully qualified" mapping has matched before.
By doing this the Module.gwt.xml doesn't have to be changed when new
services are added.
Original issue reported on code.google.com by olivier....@gmail.com on 19 Nov 2008 at 4:29
Original issue reported on code.google.com by
olivier....@gmail.com
on 19 Nov 2008 at 4:29Attachments: