You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Lorenzo Bolzani <l....@gmail.com> on 2011/04/07 18:07:01 UTC

Asynchronous send not working

Hi,
I have this situation on servicemix 3.3.1, on jdk 1.5, on linux.

I have a first class that extends the PollingEndpoint. When a file is found
a new InOnly MessageExchange is created in the poll method and this exchange
is sent with the send() method to another class that extends
ProviderEndpoint.
The first endpoint produces many MessageExchange and I'd like these to start
being processed as soon as possibile.

What I found out with a couple of breakpoints is that the method
processInOnly() of the second ProviderEndpoint is not called until the
poll() method of the first endpoint does not return (I do not know exactly
how up in the stack).

Is this the expected behaviour? Should I configure someway the first or
second endpoint for the delivery to be asynchronous?

In this doc

http://servicemix.apache.org/servicemix-jms-new-endpoints.html

I found a reference to the synchronous attribute of the endpoint. Is it
relevant? On which side should be applied?


Thanks in advance, bye


Lorenzo

Re: Asynchronous send not working

Posted by Lorenzo Bolzani <l....@gmail.com>.
Hi, I solved this problem.

This was due to Eclipse bringing to front the editor only for the first
breakpoint that is encountered. When a second breakpoint is hit this is not
notified in any way until the first thread being debugged is released.
Only now the second breakpoint is brought to front.


Bye

Lorenzo