-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Siraj,

Siraj Haider wrote:
> Hello, Now I have changed my servlet.  I have created a new class 
> ResultFetcher extended by thread and now I am doing the checking part 
> inside that Thread.run() method.  and calling the new class like this :
> 
>       ResultFetcher rf = new ResultFetcher(something);
>       rf.setDaemon(true);
>       rf.run();

Thread.run does not actually launch the new thread. It merely calls the
"run" method on it, synchronously. If you re-read the javadoc, you'll
see that Thread.start is what you really want to call.

You can ignore the stabbing-in-the-dark advise that others are
attempting to give you... things like setting daemon status and closing
connections are unrelated to this problem (but actually very good things
to do).

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGbb5O9CaO5/Lv0PARAobjAKC9/4h/UAAHv4W4O19GRMjd8ywQEACdE+/e
EwOXUQ1ouqAHi3EA/2Sib+A=
=adMl
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to