Title: Message
client sends the list of emails to a JMS queue.  An MDB is listening on the queue and processes the emails.  As each email is sent, MDB sends a message to another queue that another email message has been processed.  The client app would listen on this queue and update its counter when a new message was received.
 
The client could be anything.  The important thing is that this setup keeps your client responsive and able to do other things while the emails are being sent/processed ( even if it is just updating a progress bar ).
 
James
 
-----Original Message-----
From: ssmtech [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 07, 2003 12:25 AM
To: [EMAIL PROTECTED]
Subject: Showing Email Statistics while sending email throu JavaMail API..

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

The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you receive this in error, please contact the sender and delete the material from all computers.

Reply via email to