开发者

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

开发者 https://www.devze.com 2023-03-26 11:51 出处:网络
I have GWT projects as .war A 开发者_StackOverflowand .war B... each .war\'s servlet contains methods like a

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

精彩评论

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