You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Matt Madhavan <ma...@gmail.com> on 2011/10/13 21:37:27 UTC
Camel Active MQ Queue Stopping polling - Make it eent driven
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.
Re: Camel Active MQ Queue Stopping polling - Make it eent driven
Posted by Claus Ibsen <cl...@gmail.com>.
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 <ma...@gmail.com> 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: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/
Re: Camel Active MQ Queue Stopping polling - Make it eent driven
Posted by Christian Müller <ch...@gmail.com>.
The reason is, because you use the bean component in a "from" definition.
You can put your two routes together into one.
Christian
Sent from a mobile device
Am 13.10.2011 21:37 schrieb "Matt Madhavan" <ma...@gmail.com>:
> 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.
>