J2EE Application Client |
|
|
![]() |
|
配置和运行 | 技术说明 | JavaDoc | 您自己构建 |
配置样本 |
运行样本 |
Launch API 样本不需要配置。
Launch API 样本是一个简单命令行应用程序。使用提供的批处理文件运行样本。
要使用提供的批处理文件运行 Launch API 样本,执行下列步骤:
- 打开命令提示符
- 将当前工作目录更改为
- 在文本编辑器中打开 launchapi.prop 文件并进行以下更改:
将:
#BootstrapHost=
更改为:
BootstrapHost=<server_name>
其中,<server_name> 表示运行 Application Server 的系统的域名或 IP 地址。
- 运行 launchAPI
- 应用程序输出应该显示如下:
-------------------------------------------------------------- Running LaunchAPIClientMain from LaunchAPI.ear using launch() -------------------------------------------------------------- IBM WebSphere Application Server, Release 8.0 Java EE Application Client Tool Copyright IBM Corp., 1997-2009 WSCL0013I: 正在初始化 Java EE 应用程序客户机环境。 Debugging is set to false Loading the Security Configuration... WSCL0035I: 初始化 Java EE 应用程序客户机环境完成。 WSCL0014I: Invoking the Application Client class com.ibm.websphere.samples.j2eeappclients.launchapi.LaunchAPIClientMain LaunchAPIClientMain up and running... Input Parameters: Green Yellow Blue
<Launch Command> <EAR File> <Properties File> {Application Parameter}; <Launch Command> ::= <Java application launch command.> <EAR File> ::= <Valid EAR File and Path Name> <Properties File> ::= <Valid Java Properties File and Path Name> <Application Parameter> ::= <space> String