Re: InOut in routingSlip

2011-05-04 Thread Claus Ibsen
On Wed, May 4, 2011 at 10:25 AM, Muhammad Ichsan wrote: > 2011/5/4 Claus Ibsen : >> Hi >> >> I created an unit test based on our routes and it works fine >> http://svn.apache.org/viewvc?rev=1099342&view=rev > > So, why it's not working with Spring? Is it Camel's bug related to Spring? > Works fin

Re: InOut in routingSlip

2011-05-04 Thread Muhammad Ichsan
2011/5/4 Claus Ibsen : > Hi > > I created an unit test based on our routes and it works fine > http://svn.apache.org/viewvc?rev=1099342&view=rev So, why it's not working with Spring? Is it Camel's bug related to Spring? -- ~The best men are men who benefit to others http://michsan.web.id 一緒に勉強し

Re: InOut in routingSlip

2011-05-04 Thread Claus Ibsen
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 wrote: > Dear All, > > Is it possible to use inOut in routingSlip? In the following context, > the destin

Re: InOut in routingSlip

2011-05-03 Thread Muhammad Ichsan
On Tue, May 3, 2011 at 10:00 PM, Claus Straube wrote: > ok - I see the problem. Try this instead: > >            public void configure() throws Exception { > >                from("direct:foo") >                .inOut("activemq:queue:a", "activemq:queue:b") As far as I know, queue will be used by

Re: InOut in routingSlip

2011-05-03 Thread Claus Straube
ok - I see the problem. Try this instead: public void configure() throws Exception { from("direct:foo") .inOut("activemq:queue:a", "activemq:queue:b") .to("mock:result"); from("activemq:queue:a") .bean(f

Re: InOut in routingSlip

2011-05-03 Thread Muhammad Ichsan
On Tue, May 3, 2011 at 6:55 PM, Claus Straube wrote: The problem is not when using "direct", but when using "activemq" I'm using: 2.6.0 3.0.5.RELEASE 5.4.2 It's still happening in 2.7.1 If you need my code to review, this is the complete artifact

Re: InOut in routingSlip

2011-05-03 Thread Claus Straube
It also works if I do this: from("direct:a") .bean(foo, "doA"); //.to("log:A"); from("direct:b") .bean(foo, "doB"); //.to("log:B"); On 03.05.2011 13:49, Claus Straube wrote: Ok - Ichsan :) This wor

Re: InOut in routingSlip

2011-05-03 Thread Claus Straube
Ok - Ichsan :) This works for me in 2.8-SNAPSHOT. I think this is pretty close to that you want to do (except the spring stuff). public class CamelTestRoutingSlip extends CamelTestSupport { @EndpointInject(uri = "mock:result") protected MockEndpoint resultEndpoint; public void t

Re: InOut in routingSlip

2011-05-03 Thread Claus Ibsen
Hi What version of Camel are you using? And try upgrading to latest released version to see if that helps. On Tue, May 3, 2011 at 10:23 AM, Muhammad Ichsan wrote: > Dear All, > > Is it possible to use inOut in routingSlip? In the following context, > the destination is visited as

Re: InOut in routingSlip

2011-05-03 Thread Muhammad Ichsan
On Tue, May 3, 2011 at 3:49 PM, Claus Straube wrote: > Hi Muhammad, Ichsan please :D > > I think the error must be in your iMessageUtil class. This route works as > you would expect: IMHO, I think it's a bug in Camel. Please look at my testing artifacts: Java code:

Re: InOut in routingSlip

2011-05-03 Thread Claus Straube
; from("direct:b") .setHeader("b", constant("_b")) .to("log:B"); } }; } } Best regards - Claus On 03.05.2011 10:23, Muhammad Ichsan wrote: Dear All, Is it possible to use inOut in routingSlip? In the following context, t

InOut in routingSlip

2011-05-03 Thread Muhammad Ichsan
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? http://camel.apache.org/schema/spring