샘플 실행

샘플을 실행하기 전에 빌드하십시오. <sdk_install_dir>/samples/wsnt-was/sample-was.properties 파일에서 SERVICE_ADDRESS 의 값을 NotificationConsumerService Web Services의 URL로 설정했는지 확인하십시오. <sdk_install_dir>/samples/wsnt-was/build.xml 파일에는 EventSource 어플리케이션을 호출하는 send.event.wsn10 이름 지정된 대상이 있습니다.

하드 코딩된 이벤트를 Web Services에 전송하려면 다음 명령을 수행하십시오.

cd <sdk_install_dir>\samples\wsnt-was
%WAS_HOME%\bin\ws_ant send.event.wsn10      <WS-Notification 1.0 client>
%WAS_HOME%\bin\ws_ant send.event.wsn13      <WS-Notification 1.3 client>

cd <sdk_install_dir>/samples/wsnt-was
$WAS_HOME/bin/ws_ant send.event.wsn10      <WS-Notification 1.0 client>
$WAS_HOME/bin/ws_ant send.event.wsn13      <WS-Notification 1.3 client>

이렇게 하면 하드 코딩된 이벤트가 SERVICE_ADDRESS 위치에서 실행 중인 Web Services로 전송됩니다.

샘플 테스트

샘플을 테스트하려면 다음 단계를 수행하십시오.

  1. Common Event Infrastructure Web Services Receiver가 설치된 위치에서 WebSphere Application Server 인스턴스를 시작하십시오.
  2. SDK의 samples/wsnt-was/sample-was.properties 파일을 수정한 후 WS-Notification 1.0 및 WS-Notification 1.3에 대한 SERVICE_ADDRESS의 값을 다음과 같이 각각 설정하십시오.
    http://receiver_hostname:9080/wsnt-was/services/NotificationConsumer10Soap
    http://receiver_hostname:9080/wsnt-was/services/NotificationConsumer13Soap
  3. Common Event Infrastructure Web Services Receiver 추적을 사용하십시오.
  4. trace.log 파일 아래에 수신자가 WebSphere Application Server 인스턴스에 대해 로깅한 메시지를 살펴보십시오.


상위 주제
WebSphere Application Server 샘플


관련 항목
WS-Notification 샘플 훑어보기
샘플 빌드
수신자 시작
수신자의 추적 진단 사용