[英]Integrating multiple GWT applications into a pluggable platform
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. 我想知道如何将多个基于GWT的Web应用程序组合成一个灵活的可插拔系统,与新的Google产品组合略有不同。 Here are the details/ideas/requirements: 以下是详细信息/想法/要求:
Is it possible to use sources from different Eclipse projects when building a GWT application? 在构建GWT应用程序时是否可以使用来自不同Eclipse项目的源代码? If the login is owned by the "system bar" then how is it possible to secure the separate war files? 如果登录属于“系统栏”,那么如何保护单独的war文件? 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 . 答案在于使用JAX-RS REST的GWT: 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 使用JAX-B和Jackson作为对象模式的JAX-RS和RestyGWT上的REST将允许
However, the weakness of REST is that your UI cannot be a mashup bundle of cross-domain portlets. 但是,REST的弱点在于您的UI不能是跨域portlet的mashup捆绑包。 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. 为了克服这个问题,你可以编写一个代理servlet(也称为http隧道),这是一个相当简单的事情。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.