users@glassfish.java.net

RE: Re: Working with EJB timers in a Grizzly Comet callback

From: Leonid Mokrushin <leonid.mokrushin_at_ericsson.com>
Date: Mon, 13 Oct 2008 11:29:46 +0200

I think so, even though I have the reference to the TimerService (since
my Comet handler is defined in the EJB), the onInterrupt() method is
executed from within Grizzly. What would be the best way to "emulate"
EJB invocation from the Comet handler in this case?

/Leonid

> -----Original Message-----
> From: Marina.Vatkina_at_Sun.COM [mailto:Marina.Vatkina_at_Sun.COM]
> Sent: Friday, October 10, 2008 23:06
> To: users_at_glassfish.dev.java.net
> Subject: Re: Working with EJB timers in a Grizzly Comet callback
>
> 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.j
> > av
> > 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
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>