users@glassfish.java.net

Re: comet

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Tue, 20 May 2008 13:35:48 -0400

Hi Murali,

Murali wrote:
> Hi Guys,
>
> I tried using DWR rever ajax to try out comet but it looked very slow
> when two reverse ajax threads are running simultaneously, and moreover
> sending messages from javascript normal request have been kept delaying
> by 60s as the reverse ajax thread was running.Do we need to do any
> setting from the glassfish side to use DWR reverse ajax effectively as i
> feel that it would be a very big performance hit if this is the speed.

Try adding more thread in domain.xml, as DWR do a lot of request. In
domain.xml (or using admin gui), increase:

<request-processing ...thread-count="5"/>

That should help.

-- Jeanfrancois



>
> -Murali
>
>
>
> Jennifer Ball wrote:
>> Hi
>>
>> There's also a section on Grizzly Comet in the Developer's Guide:
>>
>> http://docs.sun.com/app/docs/doc/820-4496/ggrgt?a=view
>>
>> Jennifer
>>
>> Jeanfrancois Arcand wrote:
>>> Hi,
>>>
>>> glassfish_at_javadesktop.org wrote:
>>>> Hi,
>>>>
>>>> I was trying to enable comet application from
>>>> http://weblogs.java.net/blog/jfarcand/archive/2006/07/the_grizzly_com.html
>>>>
>>>>
>>>> but it is to much complicated, for my little example;
>>>>
>>>> I only want to push new number in browser increesed by 1, every two
>>>> second.
>>>> Can I use grizzlet - but how?
>>>> How can I incorporate grizlet with servlet?
>>>
>>> First, you should work with GlassFish v3 instead of v2 (developer
>>> experience much nicer)[1]
>>>
>>> Then take a look at this blog:
>>>
>>> http://weblogs.java.net/blog/jfarcand/archive/2007/06/new_adventures_3.html
>>>
>>>
>>> Hope that help.
>>>
>>> -- Jeanfrancois
>>>
>>> [1]
>>> http://weblogs.java.net/blog/jfarcand/archive/2008/04/the_hitchhikers.html
>>>
>>>
>>>
>>>
>>>>
>>>> Thanks.
>>>> [Message sent by forum member 'mdebac' (mdebac)]
>>>>
>>>> http://forums.java.net/jive/thread.jspa?messageID=275037
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net