2008/5/8 Claus Ibsen <[EMAIL PROTECTED]>:
> No you must use pop3 or imaps to poll from the mailbox.
>
>
>  But the unit test is much harder to test since the logic to connect to the 
> mailbox is now moved from doStart to the poll() to enable re-connect etc.
>
>  I should add some validation logic in the endpoint when an consumer is 
> created to scan for smtp that is invalid. (Added on my ticket list now)

Great :)

>  So the exception is now caught by ScheduledPollConsumer (James isn't there 
> something we could do better in Camel than just WARN log this?)
>
>
>     /**
>      * Invoked whenever we should be polled
>      */
>     public void run() {
>         LOG.debug("Starting to poll");
>         try {
>             poll();
>         } catch (Exception e) {
>             LOG.warn("Caught: " + e, e);
>         }
>     }

Yeah - thats sucky - am sure we can do better :)

I wonder if async exceptions should be kept in a list somewhere so
that any doStop() method fails and throw's the first exception found
or something?

-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://open.iona.com

Reply via email to