You can do something like ..

MyService service = GWT.create(MyServiceAsync.class);
((ServiceDefTarget) service).setServiceEntryPoint("../path/to/myservice");

Note the "*../*". The path is relative to your module, but you can always do
../ to get out of your module and then specify the path from there.


--Sri


2009/9/29 Darren <[email protected]>

>
> I have a remote service "MyServlet" defined in a module "module1", and
> I wish to call the service from a different module "module2".
>
> The trouble is that the URL that is generated, and used for the POST
> is of the form module2/MyServlet instead of module1/MyServlet. This
> doesn't match the URL mapping in my web.xml
>
> What should I do here? Should I add a URL servlet mapping for each
> module that uses the servlet?
>
> Thanks
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to