API 실행


샘플 구성
샘플 실행

샘플 구성

API 샘플 실행에는 구성이 필요하지 않습니다.

샘플 실행

API 샘플 실행은 단순 명령행 애플리케이션입니다. 제공되는 일괄처리 파일을 사용하여 샘플을 실행하십시오.

빠른 시작

제공된 일괄처리 파일을 사용하여 API 샘플을 실행하려면 다음 단계를 따르십시오.

  1. 명령 프롬프트를 여십시오.
  2. 현재 작업 디렉토리를 다음으로 변경하십시오.
  3. 문서 편집기에서 launchapi.prop 파일을 열고 다음을 변경하십시오.
    from:
    #BootstrapHost=
    서면 문의하시기 바랍니다.
    BootstrapHost=<server_name>
    여기서 <server_name>은 애플리케이션 서버가 실행되고 있는 시스템의 도메인 이름 또는 IP 주소입니다.
  4. launchAPI를 실행하십시오.
  5. 애플리케이션 출력이 다음과 같이 나타나야 합니다.

    --------------------------------------------------------------
    Running LaunchAPIClientMain from LaunchAPI.ear using launch()
    --------------------------------------------------------------
    
    IBM WebSphere Application Server, 릴리스 8.0
    Java EE Application Client Tool
    Copyright IBM Corp., 1997-2009
    
    WSCL0013I: Initializing the Java EE Application Client Environment.
    Debugging is set to false
    Loading the Security Configuration...
    WSCL0035I: Initialization of the Java EE Application Client Environment has completed.
    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