http://www.jroller.com/page/masini?entry=a_comet_implementation_for_google
I would love to have your feedback on how to improve it and comments in
general.
Thank you.
L.
Thanks,
Sam
Thanks,
Javid
- Bill Cosby
> --
> I don't know the key to success, but the key to failure is trying to please
> everybody.
> - Bill Cosby
>
> ------=_Part_62810_1236247.1153496866904
> Content-Type: text/html; charset=ISO-8859-1
> X-Google-AttachSize: 653
>
> Hey Luca,<br>Do you have any CPU utilization problem? My CPU is constantly using 45%<br><br>Javid<br><br><div><span class="gmail_quote">On 7/20/06, <b class="gmail_sendername">kenny</b> <<a href="mailto:chau....@gmail.com">
> chau....@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>Great stuff. I'm also looking for ways to subscribe to the server's
> <br>JMS queue from Ajax client. Any chance of publishing the<br>StreamServiceFactory and hidden iFrame.<br>thanks<br><br><br><br> - Bill Cosby<br>
>
> ------=_Part_62810_1236247.1153496866904--
Is it possible that by simulating callbacks via an open stream, it's
the polling method which is blocking and artificially showing a high
CPU load? I'd try 2-3-4 clients at the same time and see what happens.
Richard
Now I did some little (really little) tests with 10 clients (all IE)
and I noticed that Tomcat's javaw.exe never tooks more than 10% when it
really sends datas (as it should), clients instead are really idle and
only take CPU time while receiving data.
Ciao
> ------=_Part_71905_10849836.1153582815436
> Content-Type: text/html; charset=ISO-8859-1
> X-Google-AttachSize: 2533
>
> Luca,<br>My configration:<br>Server: Apache Tomcat 4.1<br>Client: Firefox, IE 6.0<br>GWT version: 1.0.21<br><br>Thanks,<br>Javid<br><br><div><span class="gmail_quote">On 7/22/06, <b class="gmail_sendername">Luca Masini</b>
> <<a href="mailto:luca....@gmail.com">luca....@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>You are the second that tell me about this problem, so I would like to
> <br>investigate it. Can you give me your configuration ?<br><br>Javid Alimohideen wrote:<br>> Hey Luca,<br>> Do you have any CPU utilization problem? My CPU is constantly using 45%<br>><br>> Javid<br>><br>> On 7/20/06, kenny <
> <a href="mailto:chau....@gmail.com">chau....@gmail.com</a>> wrote:<br>> ><br>> ><br>> > Great stuff. I'm also looking for ways to subscribe to the server's<br>> > JMS queue from Ajax client. Any chance of publishing the
> <br>> > StreamServiceFactory and hidden iFrame.<br>> > thanks<br>> ><br>> ><br>> > ><br>> ><br>><br>><br>> --<br>> I don't know the key to success, but the key to failure is trying to please
> <br>> everybody.<br>> - Bill Cosby<br>><br>> ------=_Part_62810_1236247.1153496866904<br>> Content-Type: text/html; charset=ISO-8859-1<br>> X-Google-AttachSize: 653<br>><br>> Hey Luca,<br>Do you have any CPU utilization problem? My CPU is constantly using 45%<br><br>Javid<br><br><div><span class="gmail_quote">On 7/20/06, <b class="gmail_sendername">kenny</b> &lt;<a href="mailto:
> <a href="mailto:chau....@gmail.com">chau....@gmail.com</a>"><br>> <a href="mailto:chau....@gmail.com">chau....@gmail.com</a></a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt
> 0.8ex; padding-left: 1ex;"><br>Great stuff.&nbsp;&nbsp;I'm also looking for ways to subscribe to the server's<br>> <br>JMS queue from Ajax client.&nbsp;&nbsp;Any chance of publishing the<br>StreamServiceFactory and hidden iFrame.<br>thanks<br><br><br><br>&nbsp;&nbsp;- Bill Cosby<br>
> <br>><br>> ------=_Part_62810_1236247.1153496866904--<br><br><br><br>
>
> ------=_Part_71905_10849836.1153582815436--
- Bill Cosby
Sorry Javid, did I miss something or this has nothing to do with the
COMET ?
- Bill Cosby
SageServiceImpl.Event event = (SageServiceImpl.Event)arg;
if(session.getAttribute(event.queueName)!=null) //
exception occurs here
{
synchronized (eventList) {
eventList.add(event);
}
}
}
*/