JetSpeed2开发文档中文翻译

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

JetSpeed-2技术资料目录JETSPEED2.0概述.......................................................................................................................2JETSPEED-2工作流程.................................................................................................................5JETSPEED-2安全机制..................................................................................................................8JETSPEED-2的PORTALBRIDGE..........................................................................................101集成STRUTSMVC模式开发的应用程序.............................................................................102集成WEBWORK开发的应用程序.........................................................................................123JSP应用程序集成...................................................................................................................123集成PERL应用程序.............................................................................................................134集成PHP应用程序................................................................................................................13相关技术介绍和规范....................................................................................................................14WSRP..........................................................................................................................................14PORTLET容器.............................................................................................................................15PORTLET......................................................................................................................................15PORTLETPREFERENCES...............................................................................................................16JSR168规范...............................................................................................................................16PSML..........................................................................................................................................18LAYOUT.......................................................................................................................................18DECORATION................................................................................................................................18AGGREGATOR..............................................................................................................................19PLUTO............................................................................................................................................20EXO.............................................................................................................................................21LIFERAY.......................................................................................................................................21JPORTAL.......................................................................................................................................21JETSPEED-2相关资源链接...........................................................................................................222JetSpeed2.0概述Jetspeed2.0最终release版本发布于2005年12月,可以从以下网址下载源代码和捆绑tomcat的压缩文件:。与Jetspeed1.x比较,Jetspeed2.0(以下简称J2)的架构发生了很大变化,J1.x使用了Turbine,在J2中Turbine不再使用,而是使用了SpringFramework作为默认的组件框架,从官方的资料介绍看,J2架构支持将一种组件架构替换为别的组建架构如Pico,Spring仅仅是J2默认的ComponentFramework,从本节下文的叙述中可以看到替换的方式。portlet之间可以通过session等来进行交互。所以谈不上“JSR168没有定义portlet之间的事件模型”。由于Jetspeed不是基于JSF的,所以它的门户上的链接是无状态的,也许独立的AJAX可以让它更容易被集成。Jetspeed-2使用pluto作为Portlet容器。Jetspeed-2组件框架(ComponentFramework)的装配是通过JetspeedServlet(org.apache.jetspeed.engine.JetspeedServlet)进行配置和实现的,见下图:JetspeedServlet在web.xml中配置,门户应用启动时即执行JetspeedServlet。JetspeedServlet中initializeComponentManager方法为给定的组件框架装载assemply(见WEB-INF/assembly),initializeComponentManager将springframework作为默认的组件框架。并装配WEB-INF/assembly下的xml文件来初始化spring引擎。然后组件框架来创建JetspeedEngin:engine=newJetspeedEngine(properties,applicationRoot,config,3initializeComponentManager(config,applicationRoot,properties));下面是initializeComponentManager方法的代码:protectedComponentManagerinitializeComponentManager(ServletConfigservletConfig,StringappRoot,Configurationconfiguration)throwsIOException{ServletConfigFactoryBean.setServletConfig(servletConfig);//StringrelativeApplicationRoot=getRealPath(/);StringrelativeApplicationRoot=appRoot;StringabsApplicationRoot=newFile(relativeApplicationRoot).getCanonicalPath();finalStringassemblyDir=configuration.getString(assembly.dir,/WEB-INF/assembly);finalStringassemblyFileExtension=configuration.getString(assembly.extension,.xml);String[]bootConfigs=newString[]{/WEB-INF/assembly/boot/*.xml};String[]appConfigs=newString[]{assemblyDir+/*+assemblyFileExtension};ServletContextservletContext=servletConfig.getServletContext();SpringComponentManagercm=newSpringComponentManager(bootConfigs,appConfigs,servletContext,appRoot);returncm;}如果我们需要用别的

1 / 22
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功