I am trying to use j-interop within a stateless EJB.
The system however uses TimerTasks as part of Garbage Collection.
When I undeploy the EJB I get a null pointer within the internal GC (code snippet)
EDIT: After a big of digging I found that multi-threading (Thread/Runnable/TimeTask etc.) are not permissible within EJBs
Has anyone encountered this issue, and have a solution for it?
Is there anyway of obtaining references to the timer tasks to kill them using a @PreDestroy on the EJB?
I am trying to use j-interop within a stateless EJB.
The system however uses TimerTasks as part of Garbage Collection.
When I undeploy the EJB I get a null pointer within the internal GC (code snippet)
EDIT: After a big of digging I found that multi-threading (Thread/Runnable/TimeTask etc.) are not permissible within EJBs
Has anyone encountered this issue, and have a solution for it?
Is there anyway of obtaining references to the timer tasks to kill them using a @PreDestroy on the EJB?
Last edit: Adam 2015-01-14