users@grizzly.java.net

Re: (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 12:40:14 -0400

Salut,

neekfenwick wrote:
>
> Jeanfrancois Arcand-2 wrote:
>> 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:
>>
>
> I downloaded glassfishv3prelude again today and installed from scratch, only
> to find it also sends comment-enclosed json, so apparently the glassfish
> distro hasn't been changed since I first installed a few months ago.

Yes, I means V3 snapshot or promoted build. Take the one from last week
from here:

httP;;//glassfish.dev.java.net

>
> I am a little confused by you saying you cannot update grizzly in v3
> prelude, when that seems to be the entire point of your blog post
> http://weblogs.java.net/blog/jfarcand/archive/2008/11/updating_grizzl.html.

yes that one no longer works. Update GF and then you can replace grizzly
modules easily by dropping them under
glassfish/home/modules/grizzly-cometd.jar.

Does that help?

Thanks!

-- Jeanfrancois

>
>
> Jeanfrancois Arcand-2 wrote:
>> 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
>>
>
> I've done this (you've forced me to finally implement proper war packaging
> in my build.xml :)) and run it. I find the json comes back not comment
> escaped, so the grizzly you linked to performs as I expect. The dojo comet
> impl then seems to get in a fairly tight loop in the browser, sending a
> /meta/connect ever 20 ms, but I guess that's my fault somewhere and I'll
> chase it tomorrow.
>
> How can I get that version of grizzly in my glassfishv3prelude, please? Do
> I just have to wait for someone else to package glassfish, and when might
> that happen? My app in development is now at the point where I pretty much
> need cometd working to progress.
>
> If I can run my jsp's in this grizzly-cometd-webserver then perhaps I can
> get away with that, for now. Is that possible?