샘플을 실행하기 전에 빌드하십시오.
<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로 전송됩니다.
샘플을 테스트하려면 다음 단계를 수행하십시오.
samples/wsnt-was/sample-was.properties
파일을
수정한 후 WS-Notification 1.0 및 WS-Notification 1.3에 대한 SERVICE_ADDRESS의 값을 다음과 같이 각각 설정하십시오. http://adapter_hostname:8080/axis/services/NotificationConsumer10Soap
http://adapter_hostname:8080/axis/services/NotificationConsumer13Soap
상위 주제
WebSphere Application Server 샘플
관련 항목
WS-Notification 샘플 훑어보기
샘플 빌드