Websphere 7.0, EJB3.0Websphere EJB3.0 타이머 지속성 피하기
기본 EJB 타이머 지속성을 피할 수있는 방법이 있습니까? 타이머가 서버 충돌 및 재시작에서 살아남은 것처럼 보입니다.
감사합니다.
Websphere 7.0, EJB3.0Websphere EJB3.0 타이머 지속성 피하기
기본 EJB 타이머 지속성을 피할 수있는 방법이 있습니까? 타이머가 서버 충돌 및 재시작에서 살아남은 것처럼 보입니다.
감사합니다.
Java EE 6 (WebSphere 8 이상)에 추가 된 비 영구 EJB 타이머.
은 WebSphere 7의 비 영구적 인 타이머가 필요하다면 아마 당신은 EJB 3.0과 AlarmManager
바람직한 방법이 필요합니다은 타이머가 오류로 인해 지속 피하기 위해 서버 종료/시작의 모든 타이머를 취소하는 것입니다. 또는 당신이 here을 참조 할 수 있습니다, ApplicationListener
인터페이스를 구현하여 onApplicationEnd
또는 onApplicationStart
을하지만, 전자는 더 -
당신은 적절한 방법으로 코드를 배치 할 수 있습니다.
그렇지 않으면 문서에서 언급 한 것처럼 타이머를 명시 적으로 취소하는 명령을 실행할 수 있습니다.
cancelEJBTimers 당신이
setPersistent(isPersistent)
로 구성 할 수 있습니다TimerConfig
와 EJB-3.1
This command cancels and removes from persistent storage EJB timers based on the specified filter criteria.
The syntax for this command is: cancelEJBTimers server filter [options] filter: -all | -timer | -app [-mod [-bean ]]
-all
-timer timer id
-app application name
-mod module name
-bean bean name
options: -host host name
-port portnumber
-conntype connector type
-user userid
-password password
-quiet
-logfile filename
-replacelog
-trace
-help
.