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();
      System.out.println("RETURNING THE CONROL~!!!!!!");

now the problem is, its not printing this "RETURNING..." statement until 
the whole run() process is completed, which is very weird. 

thanks
Siraj

Martin Gainty wrote:
> Siraj--
>
> Try setting your thread object as a daemon?
> thread.setDaemon(true)
> http://java.sun.com/j2se/1.5.0/docs/api/
>
> M--
> This email message and any files transmitted with it contain confidential
> information intended only for the person(s) to whom this email message is
> addressed.  If you have received this email message in error, please 
> notify
> the sender immediately by telephone or email and destroy the original
> message without making a copy.  Thank you.
>
> ----- Original Message ----- From: "Siraj Haider" <[EMAIL PROTECTED]>
> To: <users@tomcat.apache.org>
> Sent: Monday, June 11, 2007 2:00 PM
> Subject: Thread Pool
>
>
> I am using tomcat version:5.5.20 java version:1.6.0-b105 os version:
> intel solaris 5.10
> scenario is: my java program call a servlet which return to my java
> program using sendData and then goes into a loop to perform other
> functions.  Now after i get the control back in my java program i try to
> call another servlet on the same tomcat, but it waits until the previous
> servlet call (which was in a loop to perform other functions) is done.
> I have these settings in my servler.xml for thread pooling:
> maxThreads="1000" minSpareThreads="100" maxSpareThreads="200"
> acceptCount="500".  Can somebody please how to fix this problem ?
>
>
>
> This electronic mail message and any attachments may contain 
> information which is privileged, sensitive and/or otherwise exempt 
> from disclosure under applicable law. The information is intended only 
> for the use of the individual or entity named as the addressee above. 
> If you are not the intended recipient, you are hereby notified that 
> any disclosure, copying, distribution (electronic or otherwise) or 
> forwarding of, or the taking of any action in reliance on, the 
> contents of this transmission is strictly prohibited. If you have 
> received this electronic transmission in error, please notify us by 
> telephone, facsimile, or e-mail as noted above to arrange for the 
> return of any electronic mail or attachments. Thank You.
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



This electronic mail message and any attachments may contain information which 
is privileged, sensitive and/or otherwise exempt from disclosure under 
applicable law. The information is intended only for the use of the individual 
or entity named as the addressee above. If you are not the intended recipient, 
you are hereby notified that any disclosure, copying, distribution (electronic 
or otherwise) or forwarding of, or the taking of any action in reliance on, the 
contents of this transmission is strictly prohibited. If you have received this 
electronic transmission in error, please notify us by telephone, facsimile, or 
e-mail as noted above to arrange for the return of any electronic mail or 
attachments. Thank You.



---------------------------------------------------------------------
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