dcsimg
MailBox locked!!
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ashok_Naidu
Posted On:   Saturday, September 15, 2001 01:59 AM

I am getting mailbox locked error (using pop3) when user tries to access
more then two mails at one time. I was thinking of trapping " javax.mail.AuthenticationFailedException "
and putting the main line of execution to sleep for few seconds and retry again
to connect to mailbox. But my problem is how to go about it. Can i create a thread
in JSP/bean and do the connecting process in it . Is it safe? Do you have any
alternative?

Re: MailBox locked!!

Posted By:   John_Zukowski  
Posted On:   Saturday, September 15, 2001 11:07 PM

POP only supports access from a single client at a time. Threading in JSP can be tricky in a way, as you must return the generated page. Do you really want to wait until the mailbox is available again before the page finishes generating? How to work with threads is already covered in the Threads FAQ.
About | Sitemap | Contact