2013-03-01 3 views

답변

2

Java EE 6 (WebSphere 8 이상)에 추가 된 비 영구 EJB 타이머.

은 WebSphere 7의 비 영구적 인 타이머가 필요하다면 아마 당신은 EJB 3.0과 AlarmManager

0

바람직한 방법이 필요합니다은 타이머가 오류로 인해 지속 피하기 위해 서버 종료/시작의 모든 타이머를 취소하는 것입니다. 또는 당신이 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 

.