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
精彩评论