必须在已扩充概要文件以使用
Common Event Infrastructure
的每个 WebSphere 运行时环境中部署事件服务器企业应用程序。
执行此任务的目的和时间
事件服务器企业应用程序打包在 event-application.ear
EAR 文件中。event-application.jacl 脚本将此应用程序安装在
WebSphere ESB 中。
完成此任务需要执行的步骤
- 转至 profile_path/event/application
目录以获取用于定义想要部署该应用程序的 WebSphere Application Server
运行时环境的概要文件。 (将 profile_path
替换为包含 WebSphere Application Server 概要文件的目录的路径。)
- 使用 wsadmin 命令来运行 event-application.jacl 脚本:
- Windows 系统
profile_path\bin\wsadmin [-conntype none] -profile event-profile.jacl
-f event-application.jacl -action action -earfile event-application.ear
-backendid backend_id -node node_name -server server_name
[-cluster cluster_name] [-appname app_name] [-trace]
- Linux 和 UNIX 系统
profile_path/bin/wsadmin.sh [-conntype none] -profile event-profile.jacl
-f event-application.jacl -action action -earfile event-application.ear
-backendid backend_id -node node_name -server server_name
[-cluster cluster_name] [-appname app_name] [-trace]
参数如下所示:
- action
- 要执行的操作。要安装企业应用程序,则指定 install。要更新已安装的现有事件服务器应用程序,则指定
update。在更新期间,脚本会在当前目录中建立现有应用程序 EAR 文件的备份副本;以后必要时可使用此备份副本来恢复先前版本的应用程序。
- backend_id
- 将由企业应用程序使用的数据库后端的类型。它必须是下列其中一个值:
- CLOUDSCAPE_V51_1
- DB2UDBNT_V82_1
- DB2UDBNT_V8_1
- ORACLE_V10_1
- ORACLE_V9_1
- DB2UDBOS390_V8_1
- DB2UDBOS390_V7_1
- node_name
- WebSphere ESB
节点,将在其中部署事件服务器。要查明节点名,执行下列步骤:
- 运行 profile_path/bin/setupCmdLine 脚本。
- 对于 Linux 或 UNIX 系统,运行 echo $WAS_NODE 命令,对于
Windows 系统,运行 echo %WAS_NODE% 命令。
此值是区分大小写的。如果要在集群中部署企业应用程序,则省略此参数。
- server_name
- 将在其中部署事件服务器企业应用程序的 WebSphere 服务器。此值是区分大小写的。如果要在集群中部署企业应用程序,则省略此参数。
- cluster_name
- 将在其中部署事件服务器企业应用程序的 WebSphere 集群。仅当要在集群中部署应用程序并且未指定节点和服务器时,才应指定此参数。
- app_name
- 要用于 Common Event Infrastructure
企业应用程序的名称。此参数是可选的;缺省值为 CommonEventInfrastructureServer。
可选 -trace
参数会导致标准输出中显示其他调试信息。
注: - 如果指定 event-application.ear 文件位置的标准路径,则确保路径中使用的是正斜杠(/),即使在 Windows 系统上也是如此。
- 如果要在独立节点上部署应用程序,则指定可选 -conntype none 参数以按本地方式运行 wsadmin。
有关 wsadmin 实用程序的更多信息,请参阅 WebSphere Application Server
文档。
结果
event-application.jacl 脚本完成后, 将在指定服务器或集群中部署 Common
Event Infrastructure 企业应用程序。在
WebSphere ESB
Network Deployment 环境中,如果已安装该应用程序,则脚本仅添加有关指定节点和服务器的部署信息。