RPC call to service in common module.

12 views
Skip to first unread message

werda...@gmail.com

unread,
Mar 3, 2007, 3:45:30 AM3/3/07
to Google Web Toolkit
If I have a RPC service inside a common module can I use it from a
module that extends it? \

For example lets say I have myService setup in a module called common,
and have the servlet declared in Common.gwt.xml.

If I take module applicationA, and have ApplicationA.gwt.xml extend
Common.gwt.xml, then could a class sitting inside applicaitonA/client
call the common service?

I cant for the life of me get it to work, any hints appreciated

MC

boscomonkey

unread,
Mar 4, 2007, 4:58:22 PM3/4/07
to Google Web Toolkit
I built an example for you and others who may have this question -
chase the "archive" link in the latest post on http://www.boscomonkey.com/

It's an eclipse project archive with two GWT modules - Common &
Display. Common exposes and implements an InfoService with one method
(getServerInfo), while Display consumes it.

The main trick is in Display.gwt.xml - there's an "inherit" element
that brings in the Common module.

Good luck. If this works for you, you owe me a beer. :-)

-- Bosco


On Mar 3, 12:45 am, "werdafuc...@gmail.com" <werdafuc...@gmail.com>
wrote:

boscomonkey

unread,
Mar 4, 2007, 9:50:58 PM3/4/07
to Google Web Toolkit
Oh great, my stinking web site has to go and die on me. Ok, try this
link for the download - http://boscomonkey.blogspot.com/


On Mar 4, 1:58 pm, "boscomonkey" <boscomon...@gmail.com> wrote:
> I built an example for you and others who may have this question -

> chase the "archive" link in the latest post onhttp://www.boscomonkey.com/


>
> It's an eclipse project archive with two GWT modules - Common &
> Display. Common exposes and implements an InfoService with one method
> (getServerInfo), while Display consumes it.
>
> The main trick is in Display.gwt.xml - there's an "inherit" element
> that brings in the Common module.
>
> Good luck. If this works for you, you owe me a beer. :-)
>
> -- Bosco
>
> On Mar 3, 12:45 am, "werdafuc...@gmail.com" <werdafuc...@gmail.com>
> wrote:
>
>
>
> > If I have a RPC service inside a common module can I use it from a
> > module that extends it? \
>
> > For example lets say I have myService setup in a module called common,
> > and have the servlet declared in Common.gwt.xml.
>
> > If I take module applicationA, and have ApplicationA.gwt.xml extend
> > Common.gwt.xml, then could a class sitting inside applicaitonA/client
> > call the common service?
>
> > I cant for the life of me get it to work, any hints appreciated
>

> > MC- Hide quoted text -
>
> - Show quoted text -

Reply all
Reply to author
Forward
0 new messages