开发者

GWT - how to get method A of service A from method B of Service B?

I have GWT projects as .war A 开发者_StackOverflowand .war B... each .war's servlet contains methods like a

  • .war A - String methodA(){return "this is method A of .war A";}
  • .war B - String methodB(){return (?).methodA(); }

The thing is... I'd like to get methodA value from methodB. So my question is... Is it possible to do that? And how to do that according to GWT?

Any useful comment is appreciated


To do that, you need to include all modules (like A) in module B in the gwt config file.

After that, use a Generator to dynamically create a method which return the value of method A by calling the good module

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜