Adam - 2015-01-12

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?

SEVERE: Exception in internal GC
java.lang.NullPointerException
    at org.jinterop.dcom.core.JISession$Release_References_TimerTask.run(JISession.java:293)
    at java.util.TimerThread.mainLoop(Timer.java:512)
    at java.util.TimerThread.run(Timer.java:462)
 

Last edit: Adam 2015-01-14