tags:

views:

17

answers:

0

Hello everyone, I have an aplication which uses tomcat runtime. I've implemented its comet example and i'm having some problems to recognize why doesn't server's data arrive on browser after I use the flush method from the PrintWriter of the ServletResponse.

The biggest confusing thing is that sometimes it just works. I don't understand how or why, but it just works. I was presuming it's a mal-formed message problem, but if that was the problem it couldn't work well any time.

So I humbly ask you, are there some problems in flush method that I had to know? Is there any pattern of message that tomcat requires?

Oh, I almost forget to say another confusing issue, when I turn off my webapplication, all data that haven't been sent after flush instruction, are sent to browser. Strange, isn't?