users@glassfish.java.net

Re: Working with EJB timers in a Grizzly Comet callback

From: Marina Vatkina <Marina.Vatkina_at_Sun.COM>
Date: Fri, 10 Oct 2008 14:05:54 -0700

Are you trying to use EJB timers without EJBs?

thanks,
-marina

Leonid Mokrushin wrote:
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>