Web Application using OSGi and GWT

后端 未结 1 829
野性不改
野性不改 2020-12-15 08:26

Which is a good architecture for a Web Application using OSGI and GWT as UI?

The aim is to use bundles to make bundles of web interface sections. If I add new bundle

相关标签:
1条回答
  • 2020-12-15 09:03

    Please see a similar discussion on the GWT mailing list - http://groups.google.com/group/google-web-toolkit/msg/4a3f912cb89a7256

    To summarize - GWT's architecture is orthogonal to your requirement of multiple modules loaded at runtime. There are ways to achieve dynamic modules in GWT, but it is never going to be optimal.

    In general, you would define a javascript interface for each of your modules, and then export those methods from GWT using GWT Exporter. Then you'd compile each of your modules independently. The modules will then interact at runtime using the javascript methods that you exported.

    The price you pay is performance. Each module will duplicate common framework code (GWT + your own framework code), and there is nothing you can do to avoid it.

    0 讨论(0)
提交回复
热议问题