t may concern,
>
> (FYI: It's usually polite to identify yourself)
>
> On 9/27/2010 3:59 PM, Nabble User wrote:
> > Does anyone have tips for unit testing a servlet that implements
> > CometProcessor?
>
> Can't you synthesize all the events you need? It sho
Why is this the wrong type of question?
On Wed, Sep 29, 2010 at 2:44 PM, Pid * wrote:
> On 29 Sep 2010, at 12:19, Nabble User wrote:
>
> > Anyone?
>
> I think you may be asking the wrong type of question.
>
>
> p
>
> -
Anyone?
Does anyone have tips for unit testing a servlet that implements
CometProcessor?
I have a servlet similar in structure to the the Chat Servlet example here:
http://tomcat.apache.org/tomcat-6.0-doc/aio.html
So, examples for testing that servlet code would be beneficial.
Thanks in advance.
A little more info.
I mentioned that on Centos when I disabled keepalives the response to the
client would not close right away (as it would do properly on my Windows
machine). I downgraded TC on my windows machine from 6.0.28 to 6.0.26 (same
as I have on Centos) and I can now duplicate this issu
FYI - I am using org.apache.coyote.http11.Http11NioProtocol as my connector
protocol. My "long polling" requests are pretty quick (less than 2 seconds)
so its not a long connection issue.
I have a CometProcessor servlet similar to the one in the sample here:
http://tomcat.apache.org/tomcat-6.0-doc/aio.html#Example_code
One difference is that we close the writer after sending the message in the
MessageSender thread. It all works fine hitting Tomcat directly. However,
I'd like to p