users@grizzly.java.net

Re: customize CometdServlet

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Mon, 11 May 2009 22:43:51 -0400

Salut,

Vassili Gontcharov wrote:
> Hi,
> So I added grizly-module.jar and grizzly-options.jar in my project
> librairies.
> I got "super big insperation" from source code cometd v1.9.9 and changed
> use of BayeuxParser to BayeuxCometHandler And implement EventRouter as
> DummyEventRouter in my project;
> I hope it is reponse to your question.

Yes, unfortunately you should use v3 Preview or any recent v3 build as
with prelude it will be difficult to changes the runtime, unless you
update the grizzly version shipped with V3 Prelude.

Thanks!

-- Jeanfrancois

>
> Vassili
>
>
>
> Salut,
>
> Vassili Gontcharov wrote:
>> Salut,
>> Hi JeanFrançois,
>> Ouf my DummyEventRouter works with Glassfish v3 prelude with cometd
>> v1.8.2
>
> How do you set it with 1.8.2?
>
>> You spoke about a possibility to use cometd v1.9.9 by dropping Grizzly
>> OSGI to Glassfish modules
>> So i tried to drop jars grizzly-httpservice-1.9.9.jar
>> grizzly-httpservice-bundle-1.9.9.jar and got an error about
>> compatibility of servlet interface.
>
> Yes that will unfortunately not work.
>
>>
>> Can you say me please if is it good link :
>> http://download.java.net/maven/2/com/sun/grizzly/osgi/
>> for get Grizzly OSGI modules or I have to get few others ?
>
> All download under:
>
> http://download.java.net/maven/2/com/sun/grizzly/
>
>>
>> Sorry for my English
>
> Don't worries I'm number #1 for bad English :-)
>
> -- Jeanfrancois
>
>> Thanks
>>
>>
>> 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 :-)
>>> I thought to write a servlet filter for personalize comet behavior... ?
>>> Can I extends EventRouterImpl and register mine ?
>>
>> Now you can:
>>
>> https://grizzly.dev.java.net/issues/show_bug.cgi?id=582
>>
>> Let me know how it goes.
>>
>> 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
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
>> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net