users@grizzly.java.net

Re: trying comet on glassfish v2 beta2

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Mon, 11 Jun 2007 13:20:41 -0400

Hi Enrique,

just read your last blog. I think I understood event if it is in Spanish
:-) And my example in the first reply will not help based on the
Javascript described in your blog :-)

Jeanfrancois Arcand wrote:
> Hi Enrique,
>
> beta2 was broken (unless you remove the <property
> name="proxiedProtocols" ../> line. B51 will contains the fix thanks to
> your post on my blog :-) You can download an Ajax.request example here
> [1]. This is an example that will be part of my next blog on "New
> Adventure in Comet" series :-). The example has been written by Takai
> Naoto and it is a great example to start with.
>
> As for the src, you can find GlassFish v2 Comet implementation in [2].
> The latest version is 1.0.15.
>
> Thanks
>
> -- Jeanfrancois
>
> [1] http://weblogs.java.net/blog/jfarcand/archive/demo.war
> [2]
> https://maven-repository.dev.java.net/nonav/repository/grizzly/jars/grizzly-1.0.15-sources.jar
>
>
> Enrique Rodríguez Lasterra wrote:
>> I try to reply myself to the first one;
>>
>>
>> I'm writing an example that use prototype (Ajax.request) to call a
>> comet servlet. When i make the first call to attach the user/request
>> to comet the servlet block the response. Is this the normal
>> behaviour?
>>
>> YES, comet block the response becouse it will use the connection to
>> notify events of the context.

You need to set CometContext.setBlockingNotification(false) if you don't
want the connection to be blocking.

Hope that help. Continue the great work!

-- Jeanfrancois



>> --
>> _______________________________
>> Enrique Rodriguez Lasterra
>> lasterra AT javahispano DOT org
>> http://www.javahispano.org
>> Asociación sin ánimo de lucro sobre java
>> Spanish non profit association about java
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>