Hi

I'm trying to refactor all the retry code from the RemoteDelivery mailtet
(an idea I got from a recent mail from Stefano Bagnara) to a
GenericRetryMailet easy to extend and use. 

To do that I 'm reading and trying to understand the RemoteDelivery code but
I have some doubts and I hope someone can answer them:

- There is a comment that says that the store of the mail on the spool
triggers a inmediately delivery. How is this done? I can't find anything on
the AvalonMailRepository/AvalonSpoolRepository that indicates how this is
done ... It seems that the mail is only store in the spool and it will be
deliver in the same way that the failed mails, when a spool thread read it
and deliver it.
CODE:
             //Set it to try to deliver (in a separate thread) immediately
(triggered by storage)
            outgoing.store(mail);

- Someone can explain to me the ContainterUtil.dispose(mail) method? The
dispose method sets the MimeMessage internal field of mail to null and call
ContainerUtil.dispose(MimeMessage), but this second call has no sense,
doesn't it? The dispose method only has sense with objects that implements
Disposable and MimeMessage doesn't implements this interface.

regards and thanks in advance,
Rafael Munoz
-- 
View this message in context: 
http://www.nabble.com/RemoteDelivery-mailet-questions-tp19088399p19088399.html
Sent from the James - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to