I installed servicemix-3.0-M2 and instead jbi.forwardToService(...) in <java:consequence> I put jbi.route(service, exchange.getOperation(), exchange.getInterfaceName()). When component sends syncMessage it blocks until the result is returned.
Frane. gnodet wrote: > > The drools component will block if you use send an InOut exchange to it. > In such a case, you need to use the <jbi:route /> condition. > > On 9/4/06, kokkolo <[EMAIL PROTECTED]> wrote: >> >> >> Hello, >> >> I just started using SeviceMix and I hope you'll be able to help me on >> this. >> >> I would like to have the following schema: >> >> A---->B(drools)---->C (do some job) >> A<----B(drools)<----C >> >> There are three components: >> >> Component A sends a message to B (drools component) that decides where to >> send it further (e.g. to C component). C component fetches some data, do >> a >> calculation and returns result as a message, >> >> Now I would like that component A bliocks until it gets reply from >> copmponent C. >> If I use deliveryChannel.sendSync(message) it unblocks as soon as B gets >> the >> message. >> >> Is there any pattern to solve this problem? >> >> Thanks, >> Frane. >> -- >> View this message in context: >> http://www.nabble.com/Synchronous-message-%28over-Drools%29-tf2215088.html#a6135214 >> Sent from the ServiceMix - Dev forum at Nabble.com. >> >> > > > -- > Cheers, > Guillaume Nodet > > -- View this message in context: http://www.nabble.com/Synchronous-message-%28over-Drools%29-tf2215088.html#a6326343 Sent from the ServiceMix - Dev forum at Nabble.com.