J2EE 애플리케이션 클라이언트 |
|
|
![]() |
|
구성 및 실행 | 기술 노트 | JavaDoc | 자체 빌드 |
샘플 실행 |
기본 계산기 클라이언트 샘플은 WebSphere Application Server의 Stateless 세션 Bean EJB 버전 1.1 기술 샘플과 직접 통신합니다. 이 샘플을 실행하여 EJB 샘플이 제대로 작동하며 애플리케이션 서버가 올바르게 시작 및 구성되는지 확인하십시오.
기술 샘플을 애플리케이션 서버에 설치하지 않은 경우, 브라우저를 애플리케이션 서버 샘플 갤러리(http://<host_name>:<port>/WSsamples/ko/index.html)로 열고 기본 계산기 샘플을 포함하는 기술 샘플을 설치하십시오.
BasicCalculatorClient 샘플은 명령행 애플리케이션입니다. 제공된 일괄처리 파일 또는 스크립트 파일을 사용하거나 아래의 명령 구문을 수동으로 사용하여 이 샘플을 실행할 수 있습니다.
제공되는 스크립트를 사용하여 BasicCalculatorClient 샘플을 실행하려면, 다음 명령을 실행하십시오.
- 명령 프롬프트를 여십시오.
- 현재 작업 디렉토리를 다음으로 변경하십시오.
- basicCalculator를 실행하십시오.
서버에 연결하거나 기본값이 아닌 다른 포트에 연결하려면, 서버 선택을 참조하십시오.
<LAUNCHCOMMAND> <OPERATOR> <OPERAND> <OPERAND> <LAUNCHCOMMAND> ::= <J2EE Application Client Tool launch command> <OPERATOR> ::= add | subtract | multiply | divide <OPERAND> ::= <number>
WebSphere Application Server 클라이언트에서 BasicCalculatorClient 샘플을 실행하려면, 다음 단계를 완료하십시오.
서버에 연결하거나 기본값이 아닌 다른 포트에 연결하려면, 서버 선택을 참조하십시오.
Windows 플랫폼에서의 샘플 실행 결과는 다음과 같습니다.
D:\WebSphere\AppClient\samples\lib\TechnologySamplesJ2EEClient\> D:\WebSphere\AppClient\bin\launchClient.bat TechnologySamples.ear add 1 2 IBM WebSphere Application Server, 릴리스 8.0 Java EE Application Client Tool Copyright IBM Corp., 1997-2009 WSCL0012I: Processing command line arguments. 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.samp les.technologysamples.basiccalcclient.BasicCalculatorClientJ2EEMain --Creating InitialContext... Done. --Looking-up Home... Done. --Narrowing... Done. --Creating Home... Done. Result: 1.0+2.0 = 3.0 |