Hi Purav
Read my reply to "implementing a blocking method in
servlet", i think that helps.
--- Purav <[EMAIL PROTECTED]> wrote:
> 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
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/
___________________________________________________________________________
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