I think you can use a provider method<http://code.google.com/p/google-guice/wiki/ProvidesMethods> .
I don't test, but you can try: @Provides @Singleton SessionServiceAsync sessionServiceAsyncProvider() { SessionServiceAsync s = GWT.create(SessionService.class); ((ServiceDefTarget) s).setServiceEntryPoint(GWT .getHostPageBaseURL() + s.END_POINT); return s; } Juan 2011/7/28 vehdra music <veh...@gmail.com> > Hi, I am using Gin in my project. > > In my activity I have this code: > > private MyServiceAsync rpcService; > > @Inject > public MyListActivity(MyListView view, PlaceController > placeController, MyServiceAsync rpcService) { > this.view = view; > this.placeController = placeController; > this.rpcService = rpcService; > } > > This works great if my RPC is created in the same module. > > But I need to have my RPCs in another module (Core), and inherit this > module from others (ie: Admin). > > I was googling about relative paths and RPCs and I've found this post: > > http://borgestech.blogspot.com/2011/03/gwt-calling-rpc-service-inside-another.html > > But (as I am a really newby to Gin) I can't figured how to mix what > that post says with Gin. > > Can anyone give me a hand? > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-toolkit@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.