users@grizzly.java.net

Re: Grizzly Comet onTerminate()

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Mon, 30 Mar 2009 17:28:27 -0400

Salut,

felixx wrote:
> I'm under the impression that onTerminate() is automatically called when the
> handler is resumed, is this correct?

No by default it is not called. The only time it is called is when you
invoke CometEngine.unregister(). Now I'm having a doubt that we may have
supported the onTerminate invocation before. Did you read the fact
somewhere?


> I have a handler (extends DefaultConcurent handler, GF V#, Grizzly 1.9.8)
> and in onEvent() I do context.resumeCometHandler() which returns 'true' but
> the onTerminate() is never called.
> The rest of the callbacks are called as expected.

I'm tempted to think this is an issue. Let me dig into the code as I
suspect I may have supported the scenario. If not, I think we should
support it. Gustav, what do you think?

A+

--Jeanfrancois


> Thanks.