Hi

I created an unit test based on our routes and it works fine
http://svn.apache.org/viewvc?rev=1099342&view=rev


On Tue, May 3, 2011 at 10:23 AM, Muhammad Ichsan <ich...@gmail.com> wrote:
> 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
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
CamelOne 2011: http://fusesource.com/camelone2011/
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to