Anonymous | Login | Signup for a new account | 12-17-2024 08:48 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0005891 | [Resin] | minor | always | 05-01-15 16:03 | 06-03-15 08:50 | ||||
Reporter | bbik | View Status | public | ||||||
Assigned To | ferg | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | 4.0.44 | ||||||
Summary | 0005891: Cancelled ejb timers returned by getTimers() | ||||||||
Description |
Not sure, is it a bug, buy I suppose so. After cancellation, timers are returned by getTimers: @Singleton @LocalBean @Startup public class TimerTest { @Resource TimerService ts; static TimerTest inst; @PostConstruct void init() { inst=this; } public synchronized static TimerTest getInstance() { return(inst); } public Collection<Timer> getTimers() { Collection <Timer> res=ts.getTimers(); return(res); } public void cancelAll() { for(Timer ot: ts.getTimers()) { System.out.println("Found old timer "+ot.getInfo()+", cancelling it."); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^Exception here on second+ call: javax.ejb.NoSuchObjectLocalException: "This timer has been cancelled." ot.cancel(); } } Thank you |
||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
There are no notes attached to this issue. |
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed. 25 unique queries executed. |