Launch API


配置样本
运行样本

配置样本

Launch API 样本不需要配置。

运行样本

Launch API 样本是一个简单命令行应用程序。使用提供的批处理文件运行样本。

快速开始:

要使用提供的批处理文件运行 Launch API 样本,执行下列步骤:

  1. 打开命令提示符
  2. 将当前工作目录更改为
  3. 在文本编辑器中打开 launchapi.prop 文件并进行以下更改:
    将:
    #BootstrapHost=
    更改为:
    BootstrapHost=<server_name>
    其中,<server_name> 表示运行 Application Server 的系统的域名或 IP 地址。
  4. 运行 launchAPI
  5. 应用程序输出应该显示如下:

    --------------------------------------------------------------
    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