users@grizzly.java.net

(Cometd issue with encoded json)Re: [Jean-Francois Arcand's Blog] New Comment Posted to 'Updating Grizzly version in GlassFish v3'

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Tue, 19 May 2009 11:10:02 -0400

foo_at_bar.com wrote:
> A new comment has been posted on your blog Jean-Francois Arcand&#39;s Blog, on entry #10694 (Updating Grizzly version in GlassFish v3).

> I'm having trouble getting grizzly cometd to work with dojo. The glassfishv3prelude distribution comes with comet support, but returns comment-enclosed json, e.g. the handshake message from com.sun.grizzly.cometd.servlet.CometdServlet looks like this:
>
> /*[{"channel":"/meta/handshake","version":"1.0","supportedConnectionTypes":["long-polling","callback-polling"],"minimumVersion":"0.9","id":"0","clientId":"74b7ea07ea4f233c","successful":true,"advice":{"reconnect":"retry","interval":0,"multiple-clients":false},"authSuccessful":true}]*/
>
> I cannot figure out from the advice above which pieces of grizzly I should fetch and update. Can you advise me which pieces I should take from http://download.java.net/maven/2/com/sun/grizzly? Or, where can I find this out?

Can you try a more recent version of GlassFish? We have changed that
issue. Unfortunately, you cannot update grizzly in v3 prelude....You can
also test it directly using Grizzly Cometd web server:

http://download.java.net/maven/2/com/sun/grizzly/grizzly-cometd-webserver/1.9.15a/grizzly-cometd-webserver-1.9.15a.jar

and test using:

java -jar grizzly-cometd-webserver.jar -p 8080 -a your_war_file

Thanks!

-- Jeanfrancois



>