users@glassfish.java.net

Working with EJB timers in a Grizzly Comet callback

From: Leonid Mokrushin <leonid.mokrushin_at_ericsson.com>
Date: Fri, 10 Oct 2008 12:13:25 +0200

I'm trying to implement some cleanup code in the onInterrupt() callback
of my CometHandler. The code is supposed to go through the EJB timers
and cancel some of them. However I'm getting the following exception
when trying to invoke timer.getInfo() method:
 
java.lang.IllegalStateException: Invocation cannot be null
        at
com.sun.ejb.containers.TimerWrapper.checkCallPermission(TimerWrapper.jav
a:197)
        at
com.sun.ejb.containers.TimerWrapper.getInfo(TimerWrapper.java:132)
            ... (my callback here)

Any idea what can be a workaround?

/Leonid