将多个GWT应用程序集成到可插拔平台中 [英] Integrating multiple GWT applications into a pluggable platform

查看:101
本文介绍了将多个GWT应用程序集成到可插拔平台中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于如何将多个基于GWT的网络应用程序合并成一个类似于新的Google产品组合的灵活的可插拔系统,我在询问您的想法。以下是详细信息/建议/要求:屏幕顶部应该有一个栏位



  • 系统栏包含每个插件应用程序的菜单按钮。该列表应该以某种方式配置,甚至是完全动态的

  • 系统栏包含登录/注销小部件

  • 每个插件应用程序都位于系统栏下方
  • li>
  • 用户可以通过在系统菜单栏上选择其名称来切换应用程序

  • 插件应用程序应该位于单独的Eclipse项目中,以便可以开发/单独进行测试

  • 插件应用程序将共享一些自定义小部件,因此这些小部件应该保存在通用的Eclipse项目中

  • 如果插件应用程序可以作为单独的WAR文件部署在服务器上,以便它们可以逐一升级。

  • 如果系统栏自动检测到新的插件应用程序,那将是非常好的。



构建GWT应用程序时,是否可以使用来自不同Eclipse项目的源代码?如果登录由系统栏拥有,那么如何保护单独的战争文件?可以共享登录状态吗?

解决方案

答案在于使用JAX-RS REST的GWT: http://h2g2java.blessedgeek.com/2011/11 /gwt-with-jax-rs-aka-rpcrest-part-0.html



使用JAX-B和JAX-RS和RestyGWT的REST作为对象模式的杰克逊将允许


  • RPC on steroids,

  • Mashups,multi-war,multi但是,REST的弱点在于您的用户界面不能成为跨域portlet的mashup捆绑软件。有些人可能认为这是一种优势,因为跨域必须使用包含安全风险的脚本包含技术。为了克服这个问题,你可以编写一个代理servlet(又名http隧道),这是一件相当简单的事情。


    I am asking for your ideas about how to combine multiple GWT based web applications into a flexible, pluggable system little bit similar to the new Google portfolio. Here are the details/ideas/requirements:

    • on the top of the screen there should be a bar
    • the system bar contains the menu buttons for each "plugin-application". the list should be somehow configurable or even fully dynamic
    • the system bar contains login/logout widgets
    • each plugin applications are below the system bar
    • the user can switch application by choosing its name on the system menu bar
    • the plugin applications should be in separate Eclipse projects so that they can be developed/tested separately
    • the plugin applications would share some custom widgets, so these widgets should be kept in a common Eclipse project
    • it would be nice if the plugin applications could be deployed as separate WAR files on the server so that they could be upgraded one by one
    • it would be nice if the system bar automatically detected new plugin applications

    Is it possible to use sources from different Eclipse projects when building a GWT application? If the login is owned by the "system bar" then how is it possible to secure the separate war files? Can the login state be shared somehow?

    解决方案

    The answer lies in GWT with JAX-RS REST: http://h2g2java.blessedgeek.com/2011/11/gwt-with-jax-rs-aka-rpcrest-part-0.html.

    REST on JAX-RS and RestyGWT using JAX-B and Jackson as object schemata will allow

    • RPC on steroids,
    • Mashups, multi-war, multi-services scenario.

    However, the weakness of REST is that your UI cannot be a mashup bundle of cross-domain portlets. Some people might see this as a strength, since cross-domain has to use the security-risky script-include technique. In order to overcome that, you could write a proxy servlet (aka http tunnel), which is a rather simple affair.

    这篇关于将多个GWT应用程序集成到可插拔平台中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆