tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From homerlex <homerlex.nab...@gmail.com>
Subject Re: Unit testing a CometProcessor Servlet
Date Mon, 04 Oct 2010 18:14:56 GMT
> No problem. I wish I knew your name, though!

Thanks - The name is Homer :-)

On Mon, Oct 4, 2010 at 1:15 PM, Christopher Schultz <
chris@christopherschultz.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> To whom it may concern,
>
> On 10/4/2010 7:43 AM, Nabble User wrote:
> > Thank you for taking the time to reply Chris!
>
> No problem. I wish I knew your name, though!
>
> > Yes, I understand that I could just make direct calls to events.
>  However,
> > since we are talking about long blocking requests that don't return until
> > some action is taken by other users (or the connection times out of
> course)
> > I was curious to see what other people do to test these situations. A
> unit
> > test that spawns multiple threads?
>
> I think multiple threads would be your only option.
>
> You could download the Tomcat source and look at the unit tests for the
> Comet code itself. Perhaps that would give you an idea of how to write
> your own tests.
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkyqC6MACgkQ9CaO5/Lv0PC+twCfazcf57HtLa6jAa4H/yh5niem
> PzEAn2mEo2jVgZjIVInm/kEuByvw19nH
> =Swcx
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message