Not at all. It seems strange, as the poll method is only called from the scheduler. Have you tried to remote debug and reproduce the problem ?
On 3/20/07, Gianfranco Boccalon <[EMAIL PROTECTED]> wrote:
Yes, but do you have some idea about the double invocation of poll() method ? It should happen also in the file component. Guillaume Nodet ha scritto: > I agree, there is no real need to delegate the call to poll() > to the executor inside PollSchedulerTask#run(). > That's what you're talking about, right ? > > > On 3/20/07, Gianfranco Boccalon <[EMAIL PROTECTED]> wrote: >> >> About second question: I suspect that the file component doesnt need >> really the executor object, because in the PollingEndpoint class I found >> that in the start method, the object PollScheduleIterator is >> instantiated, and this object uses the executor to invoke the poll >> method. >> >> Gianfranco >> >> Gianfranco Boccalon ha scritto: >> > Hi, >> > I implemented a new binding component starting from the file BC. >> > >> > I'm using this new BC in only 1 service assembly: the problem is that >> > the poll() method of my component is called always twice (every 5 >> > seconds in my configuration). >> > I dont understand the reason. >> > >> > Another question: the file BC in the method pollFile uses an object >> > Executor to start the polling of a directory. >> > Is this for performance reasons ? >> > I ask this because I saw that also without using the executor, my code >> > works right because the method poll() is executed on the time interval >> > configured (ok, almost right, now it's called twice). >> > >> > Thanks >> > >> >> >> -- >> Gianfranco Boccalon >> Engineering Ingegneria Informatica S.p.A. >> Direzione Centrale Ricerca e Innovazione >> Direzione Architetture e Consulenza >> 35127 PADOVA >> Corso Stati Uniti 23/I >> Tel. +39.049.8692508 >> Cell. 335.7813507 >> Fax +39.049.8692566 >> E-mail: [EMAIL PROTECTED] >> >> > > -- Gianfranco Boccalon Engineering Ingegneria Informatica S.p.A. Direzione Centrale Ricerca e Innovazione Direzione Architetture e Consulenza 35127 PADOVA Corso Stati Uniti 23/I Tel. +39.049.8692508 Cell. 335.7813507 Fax +39.049.8692566 E-mail: [EMAIL PROTECTED]
-- Cheers, Guillaume Nodet ------------------------ Architect, LogicBlaze (http://www.logicblaze.com/) Blog: http://gnodet.blogspot.com/
