Fault-Tolerance with JavaMail--What to do when the SMTP Server is down?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Shantanu_Sinha
Posted On:   Monday, June 4, 2001 12:28 PM

Is there any standard practice to ensure that mail always gets sent, even if the SMTP server is down temporarily?



I'm thinking of writing a TransportListener that writes the message to a file whenever the message is not delivered. Then another process can try to send all messages queued up on file. But since Message is not serializable, it seems as if there must be an easier way to do this. Is there any open-source code that queues messages to file for fault tolerance?



I don't want to queue messages in memory, since I don't want to lose messages if my JVM must be shutdown.

Re: Fault-Tolerance with JavaMail--What to do when the SMTP Server is down?

Posted By:   John_Zukowski  
Posted On:   Wednesday, June 6, 2001 08:52 AM

How does JavaMail deal with queuing mail when the initial attempt fails? in the FAQ already asks and answers your question.
About | Sitemap | Contact