users@glassfish.java.net

Re: How to stop properly a timer ??

From: <glassfish_at_javadesktop.org>
Date: Sun, 04 Nov 2007 19:46:16 PST

Hi ALl
I have the same problem
any updates on how to cancel timers that have been persited already since the
  Collection timers = ejbContext.getTimerService().getTimers();
        for (Object obj : timers) {
            javax.ejb.Timer
                    timer = (javax.ejb.Timer) obj;

            timer.cancel();
        }

yields nothing
Cheers
Priya
[Message sent by forum member 'priyasubu' (priyasubu)]

http://forums.java.net/jive/thread.jspa?messageID=243748