将 WebSphere Portal V5.0 portlet 迁移至 V5.1

为 WebSphere® Portal V5.0 编写的大多数 portlet 在 WebSphere Portal V5.1 中将按原样运行。某些 Portlet 5.0 API 现在已被标记为建议不要使用,但它们在 WebSphere Portal V5.1 上仍然可用。但是,某些 portlet 必须按本主题中的描述进行迁移。建议将 portlet 项目迁移至将安装 portlet 的 WebSphere Portal。

注: 已迁移 portlet 应用程序项目不是向后兼容的。

要将 WebSphere Portal V5.0 的 portlet 应用程序迁移至 V5.1,执行下列操作:

  1. 将 Portal V5.0 portlet 项目迁移至 Portal V5.1 portlet 项目:
    1. 右键单击想要迁移的 portlet 项目。
    2. 选择属性 > Portlet API 来打开 Portlet API 页面。
    3. 从 Portlet API 版本下拉列表中选择 WebSphere Portal V5.1。
    4. 单击确定,将自动进行下列更改:
      • 如果存在 portlet API 的标记库描述符(TLD)文件,则除去它。
      • 与该项目相关联的 WebSphere Portal V5.0 的 JRE 容器将更改为 WebSphere Portal V5.1 JRE 容器。
      • 与该项目相关联的 WebSphere Portal V5.0 目标运行时服务器将更改为 WebSphere Portal V5.1 目标运行时服务器。
  2. 如果 portlet 项目与企业应用程序项目相关联,则建议将 EAR 项目的目标服务器迁移至 WebSphere Portal V5.1。
    1. 如果已迁移 portlet 项目仅与企业应用程序项目相关联,则执行下列操作:
      1. 关闭工作台中的所有编辑器。
      2. 右键单击与已迁移 portlet 项目关联的企业应用程序项目。
      3. 选择属性 > 服务器来打开“服务器”页面。
      4. 选择 WebSphere Portal V5.1 作为目标运行时。
      5. 单击应用
    2. 如果其它 portlet 项目与企业应用程序项目相关联,必须除去已迁移 portlet 项目并将其添加至另一企业应用程序项目。遵循下列步骤:
      1. 从企业应用程序项目中除去已迁移 portlet 项目的模块。
        1. 展开企业应用程序项目并选择部署描述符。
        2. 选择打开方式 > 部署描述符编辑器
        3. 选择“模块”选项卡。在编辑器的“模块”页面上,选择迁移的 portlet 项目的 WAR 文件。
        4. 单击除去
        5. 选择文件 > 保存以保存更改。
      2. 创建新的企业应用程序项目并将 portlet 项目添加至该项目。
        1. 选择文件 > 新建 > 项目
        2. 选择“显示所有向导”复选框。
        3. 展开 J2EE 并选择“企业应用程序项目”。
        4. 填写项目名称字段。
        5. 选择 J2EE V1.3。
        6. 选择 WebSphere Portal V5.1 作为目标服务器。
        7. 单击下一步
        8. 在“EAR 模块项目”页面上,选择迁移的 portlet 项目并单击完成
相关任务
迁移至 Rational Application Developer V6.0 中的门户网站工具

(C) Copyright IBM Corporation 2002, 2005. All Rights Reserved.