Ivan,

today I submitted a fix for the PollingEndpoint.java in the servicemix-commons.
There is now a new attribute called "concurrentPolling" which controls if more 
than one poll can go within one endpoint. 
This attribute is initialized as false, so each endpoint deriving from 
PollingEndpoint will wait for a poll cycle to be finished until a new one will 
be started. If you still want concurrent polling then put this in your 
xbean.xml endpoint configuration:  concurrentPolling="true"

You need to have the latest servicemix-shared lib to have this change.

Regards
Lars


Am Freitag 12 September 2008 11:01:04 schrieb Lars Heinemann:
> Ivan,
>
> I will have a look at it soon.
>
> Regards
> Lars
>
> Am Freitag 12 September 2008 10:54:58 schrieb ivan:
> >     Hi!
> >
> > As far as I understood
> >
> > <mail:poller service="test:myMailService"
> >               endpoint="pollerEndpoint"
> >               targetService="test:myMailProcessor"
> >               period="10000"
> >
> > connection="imap://[EMAIL PROTECTED]:143/INBOX?password=myPass"
> > deleteProcessedMessages="false"
> >               processOnlyUnseenMessages="true" />
> >
> >
> > mail:poller endpoint asks each time server for new e-mails
> > period="10000", i.e. 10 sec.
> >
> > What about if we have following situation:
> >      time
> >       0     5s       10s     15s ...
> >
> > 1.   CH  SD-M1            ED
> >
> > 2.  --------------->CH     SD-M1        ED
> >
> > CH - check mail-server.
> > SD-M1 - start downloading mail-1 (big email/ speed of downloading is
> > slow) ED - end downloading and mark as "Seen".
> >
> >
> > Thread 2 start downloading Mail-1 because of Thread-1 has no yet
> > downloaded Mail-1.
> >
> > Is it possible to start thread-2 after thread-1 is finished downloading
> > (failed downloading we mean as finished)?
> >
> >
> >    Truly yours,
> >    Ivan Pryvalov.

Reply via email to