Women in Technology

Hear us Roar



Article:
  Using Timers in J2EE Applications
Subject:   Cancelling Timers
Date:   2006-06-02 13:38:46
From:   mdundas
Note that in WebLogic 9.1 this method of cancelling timers doesn't work. The container throws a Concurrenct Modification Exception on the Timers collection ( presumably b/c the container is trying to remove the timer from the collection while we are looping thru it ). I found that timerHandle.getTimer().cancel() works fine.
-matt