Why use a uber command pattern for all services. This only leads to some
controller code to dispatch the command on the server which means everything
gets funneled thru a single point with no real gain. Keep the services
separate each w/ their own respective end points and service interfaces.
That way the exact problem described below is also avoided as an added
benefit. Command pattern for browser apps is so struts and imho not needed
for GWT RPC. After all what do you gain ?

On Sun, May 30, 2010 at 10:35 PM, Julio Faerman <[email protected]> wrote:

> Hi,
>
> I am trying to split a GWT app that uses the command (action) pattern.
> The problem is that  "GWT.create(ActionService.class)" causes every
> subclass of the return and parameter types to be included in the
> initial fragment.
>
> For instance, my action interface is:
>
> public interface ActionService extends RemoteService {
>        <T extends Response, V extends Request> T execute(V req) throws
> ActionFailedException;
> }
>
> the problem is that "module1.SomeRequest" and "module2.OtherRequest"
> gets included in the initial fragment.
> Do you see a way around this?
>
> Thanks,
> Julio Faerman
>
> --
> http://groups.google.com/group/Google-Web-Toolkit-Contributors




-- 
mP

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

Reply via email to