Hi

You are posting to the Karaf user mailing list.
For questions about Camel you should of course post to the Camel mailing list.

What you should do is to use 1 route and have it like a chain

<route>
  <from ...>
  <to ...>
  <to ...>
</route>


On Thu, Oct 13, 2011 at 9:37 PM, Matt Madhavan <[email protected]> wrote:
> Hello,
> Please bear with me as I'm new to Camel.
>
> I have a my camel snippet as follows:
>    <camelContext xmlns="http://camel.apache.org/schema/blueprint";>
>        <route id="in-bound" autoStartup="true">
>            <description>Camel In-Bound Route</description>
>            <from uri="activemq:example.A"/>
>                        <to uri="bean:processMsgService?method=processmsg"/>
>        </route>
>        <route id="out-bound" autoStartup="true">
>            <description>Camel Out-Bound Route</description>
>                        <from uri="bean:processMsgService?method=processmsg"/>
>            <to uri="activemq:example.B"/>
>        </route>
>    </camelContext>
>
>
> Event when I do not send any message the bean/method
> *uri="bean:processMsgService?method=processmsg"* gets invoked periodically.
>
> how do I stop this? Looks like activemq:example.A keeps producing null msgs
> or the method above always called.
>
> Any help will be appreciated
>
> Thanks in advance!
>
> Matt
>
> --
> View this message in context: 
> http://karaf.922171.n3.nabble.com/Camel-Active-MQ-Queue-Stopping-polling-Make-it-eent-driven-tp3419564p3419564.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to