You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by salemi <sa...@avaya.com> on 2013/05/01 18:55:59 UTC

Start and stop a route using sping xml

Hi,

I know you can stop and start route using CamelContext. Is there a way to do
it in XML?

I saw <camel:stop> in the documentation but there not much desription?

Is there something like <camel:start routeId="test"> ?

Thanks,
Ali



-----
Alireza Salemi
--
View this message in context: http://camel.465427.n5.nabble.com/Start-and-stop-a-route-using-sping-xml-tp5731871.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Start and stop a route using sping xml

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Camel 2.11 has a control bus component that allows you to send a stop
message to a Camel endpoint. See details at:
http://camel.apache.org/controlbus.html

And <camel:stop/> is for stopping continue routing, eg if you have

from X
  to Y
  choice
     when A
      to A
    otherwise
     stop
  end
   to X
   to Z

Here we stop in the otherwise, so we won't continue routing, and go to
X and Z etc.



On Wed, May 1, 2013 at 6:55 PM, salemi <sa...@avaya.com> wrote:
> Hi,
>
> I know you can stop and start route using CamelContext. Is there a way to do
> it in XML?
>
> I saw <camel:stop> in the documentation but there not much desription?
>
> Is there something like <camel:start routeId="test"> ?
>
> Thanks,
> Ali
>
>
>
> -----
> Alireza Salemi
> --
> View this message in context: http://camel.465427.n5.nabble.com/Start-and-stop-a-route-using-sping-xml-tp5731871.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen