使用 wsadmin 脚本编制导出应用程序

您可以在更新已安装的应用程序之前或迁移至不同版本的产品之前导出应用程序。

开始之前

您要导出其内容的应用程序安装在服务器上。

避免故障 避免故障: 可以使用 com.ibm.websphere.management.application.client.EnvEntry_processBindings JVM 定制属性来指定应用程序部署期间处理环境条目值的方式。但是:
  • 如果在部署应用程序时启用了 com.ibm.websphere.management.application.client.EnvEntry_processBindings,然后导出应用程序以部署到 V8.0 以前的环境上,那么部署和运行时环境均无法识别 XML 绑定中的环境条目值。
  • 如果在部署应用程序时启用了 com.ibm.websphere.management.application.client.EnvEntry_processBindings,然后导出应用程序以部署到 V8.0 或 8.0.0.1 环境,那么部署环境无法识别 XML 绑定中的环境条目值,但运行时环境可识别。
gotcha

关于此任务

导出应用程序使您能备份它们并保存其绑定信息。

过程

  1. 启动 wsadmin 脚本编制工具。
  2. 导出应用程序。
    • 将企业应用程序导出到您选择的位置,例如:
      • 使用 Jacl:

        $AdminApp export app1 /mystuff/exported.ear
      • Using Jython:

        AdminApp.export('app1', '/mystuff/exported.ear')
        表 1. export command elements. Run the export command to export an application to a file.
        Element Description
        $ is a Jacl operator for substituting a variable name with its value
        AdminApp is an object allowing application objects management
        export is an AdminApp command
        app1 is the name of the application that will be exported
        /mystuff/exported.ear is the name of the file where the exported application will be stored
    • Export Data Definition Language (DDL) files in the enterprise bean module of an application to a destination directory, for example:
      • Using Jacl:

        $AdminApp exportDDL app1 /mystuff
      • 使用 Jython:

        AdminApp.exportDDL('app1', '/mystuff')  
      表 2. exportDDL 命令元素. 运行 exportDDL 命令来导出 DDL 文件。
      元素 描述
      $ 是使用其值替换变量名的 Jacl 运算符
      AdminApp 是允许应用程序对象管理的对象
      exportDDL 是 AdminApp 命令
      app1 是将要导出 DDL 文件的应用程序的名称
      /mystuff 是一个目录的名称,从应用程序导出的 DDL 文件将被存储到此目录中

指示主题类型的图标 任务主题



时间戳记图标 最近一次更新时间: last_date
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=txml_exportdll
文件名:txml_exportdll.html