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]