users@glassfish.java.net

Re: Comet issue when running with Glassfish Predule v3 + dojo

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Mon, 19 Jan 2009 13:17:38 -0500

Salut,

which version of DOJO are you using? I suspect you are not using the
lastest one. You can browse our samples from here to see which version
we support (the bayeux protocol changed many times and it might be the
cause).

http://download.java.net/maven/2/com/sun/grizzly/samples/grizzly-cometd-chat/1.9.4/
http://download.java.net/maven/2/com/sun/grizzly/samples/grizzly-cometd-echo/1.9.4/

Thanks

-- Jeanfrancois

glassfish_at_javadesktop.org wrote:
> Hi,
>
> I'm trying to develop a small webapp using dojox.cometd and glassfish prelude v3. I can't even get dojox.cometd.init(contextPath) to work. In firebug, I see this response coming from the comet servlet:
>
> /*[{"channel":"/meta/handshake","version":"1.0","supportedConnectionTypes":["long-polling","callback-polling"],"minimumVersion":"0.9","id":"4","clientId":"15067c2c8353e18c","successful":true,"advice":{"reconnect":"retry","interval":0,"multiple-clients":false},"authSuccessful":true}]*/
>
> I would think that /* and */ are extra and that's why dojo cometd fails to parse the response.
>
> Is this suppose to work or not?
>
> Thanks
> Lionel
> [Message sent by forum member 'yopyop6' (yopyop6)]
>
> http://forums.java.net/jive/thread.jspa?messageID=326627
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>