its working!!!!!. I have implemented the runnable interface. so i should be
calling the start method instead of run. silly mistake :).
The thread is working fine. its running since morning and has already sent
32,400 mails

yeeeeeeeehhhhhhhhhh. :)

anyways...thanx to all of you
Purav

-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Gene
Campbell
Sent: Friday, February 09, 2001 1:30 AM
To: [EMAIL PROTECTED]
Subject: Re: Thread thru Servlet


I would like to see some proof you're not an evil spammer.  40000 messages?

- gene


>Could you show your code (part of it).
>
>-----Original Message-----
>From: Purav [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, February 08, 2001 9:06 AM
>To: [EMAIL PROTECTED]
>Subject: Thread thru Servlet
>
>
>Hello Guys,
>
>I have written a servlet which sends mail to around 40000 users. This
>servlet starts a thread after inserting all the records into the Db.
>The thread which is started in background takes the list of users from DB
>into an array and starts sending mails.
>After starting the thread the servlet should show a confirmation page with
>the thread started in background.
>but it doesnt happen. the confirmation page is only shown after all the
>40000 mails have been sent.
>Why is the servlet waiting for the thread to exit???.
>I guess the thread should not interfere and should be running on its own.
>
>
>Please Help
>
>
>Thanx in advance
>
>Purav
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.226 / Virus Database: 108 - Release Date: 1/5/01
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.226 / Virus Database: 108 - Release Date: 1/5/01

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.226 / Virus Database: 108 - Release Date: 1/5/01

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to