You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Ge@@ru" <ge...@gmail.com> on 2010/12/08 20:50:07 UTC

Broken camel route with servicemix-camel and concurrent call to servicemix-bean service (with 2 camel route)

Hi, i found a problem on use servicemix-camel with servicemix-bean. In
particular, in attachment i create an example where there is:
- a cxf-bc that expose a ws and that send exchange to cxf-se service;
- cxf-se service call a servicemix-camel route1;
- servicemix-camel route1 call a camel route2 (to jbi component)
- servicemix-camel route2 call a servicemix bean service (with a thread
sleep inside);
- a second client call cxf-bc service when first client wait for
response;
- and at this point last camel route that wait for a reply from
servicemix-bean service became broken yet after when servicemix-bean
close exchange correctly.

With debug i see that exchange is sent to smx-bean service (in state
Active) and answer is returned by always with state Active, it seems
that exchange don't change to Done.

This problem happens only when there are 2 route camel and secondo route
call smx-bean, while, if i try to call directly smx-bean from first
camel route all works fine.

Anyone can test this bug with attached example.

I will try to see where is the problem.