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.