Hi,

Spawn a thread and have it send the emails in the background.


----------------------------------------------
Hello Sir,
            I am working on JRUN application server and on Enterprise Java Bean 
application...I am using "JavaMail API" to send thousands of emails every day and into 
a Loop one after the other...I have a JSP page through which i call the JavaMail API 
and show a Layer containing a message saying.."Sending Email...Please Wait..." after 
clicking on a button "Send Email"...

           But now the problem is if i want to send thousands of email every day..then 
it would definately take Time...and to show the above Layer is not feasible because it 
might take around 30 to 45 minutes to do so...the user may think that something  is 
wrong with the application...or he might not know what is happening...

          So what i really want to do is i want to display a COUNT of emails sent at 
regular intervals of time...For example..
"Now sending your message by email�.please wait�..20 of 150 emails sent so far�.."

           But since i am at the Client side... i do not know how many emails have 
been sent and how many not...and if i want to keep a Track of it then is it possible 
to do so at the CLIENT Side...

Can anybody please help me is resolving the issue....Any suggestions or code snippet 
can help me out....
Thanks a million in advance....

Regards
Sam

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to