users@grizzly.java.net

Re: customize CometdServlet

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Wed, 06 May 2009 11:35:51 -0400

Salut,

Vassili Gontcharov wrote:
> Salut Jean-François,
> Thanks for your reponse.
> I seek a solution for a message push systeme from a server applicaiton
> to client in PPC devices.
> Idea is to use Glassfish with comet, I tested a simple and is look
> well, and write a PPC client in C++ for wrapping http communication.
> May be my idea is crazy but if I can't try I don't have response or
> solution :-)

Can you describe a typical scenario you want to support?

> I thought to write a servlet filter for personalize comet behavior... ?
> Can I extends EventRouterImpl and register mine ?

As strange as it looks, the current official release 1.9.15 cannot allow
you to replace the eventRouter. But this is quite simple to fix so if
you need it I will commit the fix today. Would that work?

Thanks

-- Jeanfrancois


>
>
> Salut,
>
> vassilux wrote:
>> Hi Alls,
>> I have just a question for comed / grizzly guru
>> What is best way to extends
>> com.sun.grizzly.cometd.servlet.CometdServlet for customize messages
>> delivring ?
>
> Can you elaborate a little about what you want to do exactly? The root
> is the EventRouterImpl:
>
> https://grizzly.dev.java.net/nonav/apidocs/com/sun/grizzly/cometd/EventRouterImpl.html
>
>
> https://grizzly.dev.java.net/nonav/xref/com/sun/grizzly/cometd/EventRouterImpl.html
>
>
> Thanks
>
> -- Jeanfrancois
>