Hello all,
I'm not able to find documentation about the methods exchangeSent and exchangeAccepted in the interface ExchangeListener. I suppose the difference is about WHEN the listener is notified of the exchange: before or after the exchange is sent to the endpoint, but I noticed that my listener doesn't work properly if I perform my logic in the exchangeAccepted instead of the exchangeSent.
The exchanges notified should be the same ?

Another problem is: I have a listener that in some cases is quite slow, so in some cases it's still working when it's invoked again for processing next messages, and for me this is a problem because the listener works properly only if it processes the messages in the right order. I temporarily solved the problem creating a synchronized section in my listener, so all exchanges are managed sequentially, but I dont like this solution because I'm in trouble about performances.
The listeners are executed in the same thread of components ?
If yes, I suppose that a slow listener can affect the performances of the entire system, and a solution may be to enqueue the exchange and process it separately. Right ?

Thanks in advance

--
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]

Reply via email to