Try without ?replyTo=out

On Tue, May 18, 2010 at 3:34 PM, Muhammad Ichsan <[email protected]> wrote:
> Dear All
>
> I have the following routes:
>
> // To test in out pattern
>                                
> from("direct:input").setExchangePattern(ExchangePattern.InOut).to("activemq:in?replyTo=out").to("mock:result");
>
> from("activemq:in").to("bean:con?method=toExternalMessageRequest").to("bean:biller?method=write");
> from("bean:biller?method=read").to("bean:con?method=toInternalMessageResponse").to("activemq:out");
>
> Inside toInternalMessageResponse() I've set the JMSCorrelationId based
> on JMSMessageId retrieved in toExternalMessageRequest().
>
> But why the in out is not working. I got this:
>
> May 18, 2010 8:15:12 PM org.apache.camel.component.mock.MockEndpoint
> assertIsSatisfied
> INFO: Asserting: Endpoint[mock://result] is satisfied
> May 18, 2010 8:15:12 PM org.apache.camel.impl.DefaultCamelContext doStop
> INFO: Apache Camel 2.2.0 (CamelContext:camel-1) is stopping
> May 18, 2010 8:15:12 PM org.apache.camel.impl.DefaultShutdownStrategy shutdown
> INFO: Starting to graceful shutdown routes (timeout 10 seconds)
> May 18, 2010 8:15:12 PM
> org.apache.camel.impl.DefaultShutdownStrategy$ShutdownTask run
> INFO: Route: route1 shutdown complete.
> May 18, 2010 8:15:12 PM
> org.apache.camel.impl.DefaultShutdownStrategy$ShutdownTask run
> INFO: Route: route2 shutdown complete.
> May 18, 2010 8:15:12 PM
> org.apache.camel.impl.DefaultShutdownStrategy$ShutdownTask run
> INFO: Route: route3 shutdown complete.
> May 18, 2010 8:15:12 PM
> org.apache.camel.impl.DefaultShutdownStrategy$ShutdownTask run
> INFO: Route: route4 suspended and shutdown deferred.
> May 18, 2010 8:15:12 PM
> org.apache.camel.impl.DefaultShutdownStrategy$ShutdownTask run
> INFO: Route: route5 suspended and shutdown deferred.
> May 18, 2010 8:15:12 PM
> org.apache.camel.impl.DefaultShutdownStrategy$ShutdownTask run
> INFO: Waiting as there are still 1 inflight and pending exchanges to
> complete before we can shutdown
> May 18, 2010 8:15:13 PM
> org.apache.camel.impl.DefaultShutdownStrategy$ShutdownTask run
> INFO: Waiting as there are still 1 inflight and pending exchanges to
> complete before we can shutdown
> May 18, 2010 8:15:14 PM
> org.apache.camel.impl.DefaultShutdownStrategy$ShutdownTask run
> INFO: Waiting as there are still 1 inflight and pending exchanges to
> complete before we can shutdown
>
>
> --
> ~The best men are men who benefit to others
> http://michsan.web.id 一緒に勉強しましょう!
>
> Yang berkualitas memang beda rasanya!
> http://rizqi-cookies.com
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to