Dear All,

Is it possible to use inOut in routingSlip? In the following context,
the destination is visited asynchronously instead of - my expectation
- synchronously. Why this happens?

        <camelContext xmlns="http://camel.apache.org/schema/spring";>
                <route>
                        <from uri="activemq:channel.in" />

                        <to uri="direct:invoke" />

                        <to uri="bean:consumer?method=consume" />
                </route>


                <route>
                        <from uri="direct:invoke" />

                        <to uri="bean:iMessageUtil?method=createRoutingSlip" />
        
                        <setExchangePattern pattern="InOut" />
                        <routingSlip>
                                <header>nextDestination</header>
                        </routingSlip>

                        <to uri="bean:iMessageUtil?method=iAmBack" /><!-- THIS 
PART
strangely is never reached -->
                </route>


                <!-- ============== Destinations ============== -->
                <route>
                        <from uri="activemq:itm.in" />
                        <to uri="bean:iMessageUtil?method=invokeItm" />
                </route>

                <route>
                        <from uri="activemq:abt.in" />
                        <to uri="bean:iMessageUtil?method=invokeAbt" />
                </route>

        </camelContext>

Thanks

-- 
~The best men are men who benefit to others
http://michsan.web.id 一緒に勉強しましょう!

Yang berkualitas memang beda rasanya!
http://rizqi-cookies.com

Reply via email to