|
Mantis - Resin
|
|||||
| Viewing Issue Advanced Details | |||||
|
|
|||||
| ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
| 5891 | minor | always | 05-01-15 16:03 | 06-03-15 08:50 | |
|
|
|||||
| Reporter: | bbik | Platform: | |||
| Assigned To: | ferg | OS: | |||
| Priority: | normal | OS Version: | |||
| Status: | closed | Product Version: | 4.0.44 | ||
| Product Build: | Resolution: | fixed | |||
| Projection: | none | ||||
| ETA: | none | Fixed in Version: | 4.0.45 | ||
|
|
|||||
| 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 |
||||
| Steps To Reproduce: | |||||
| Additional Information: | |||||
| Relationships | |||||
| Attached Files: | |||||
| There are no notes attached to this issue. |