You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by mantay <ma...@web.de> on 2009/11/20 17:29:22 UTC

Create a route in disabled mode

I am looking for a simple method to define (in Spring XML) a route which is
deployed but disabled at startup time. Something like this:

<route id="error.queue.to.input.queue" enabled="false">
    <from uri="activemq:error.queue"/>
    <to uri="activemq:input.queue"/>
</route>

I don't see a way how to do that. Actually, it should be possible because in
the web console one may stop and restart a route already.

What is the meaning of the <stop/> element actually?

The background is that in my scenario error messages are collected in an
error queue and an operator should manually start the route using the web
console such that the messages are transported to the input queue for
another process cycle.

-- 
View this message in context: http://old.nabble.com/Create-a-route-in-disabled-mode-tp26443574p26443574.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Create a route in disabled mode

Posted by Claus Ibsen <cl...@gmail.com>.
On Mon, Nov 23, 2009 at 9:45 AM, mantay <ma...@web.de> wrote:
>
>
>
> Claus Ibsen-2 wrote:
>>
>> See
>> http://camel.apache.org/configuring-route-startup-ordering-and-autostartup.html
>>
>> Its a new feature in the upcoming 2.1 release.
>>
>
> Thanks for your answer, Claus. Where can I download release 2.1 or a
> preliminary version? All links on the download page seem to be down. And the
> Maven repository only contains versions um to 2.0.

The download page have a section where yo download the SNAPSHOT
http://camel.apache.org/download.html

It say - Download Apache Camel 2.1-SNAPSHOT



> --
> View this message in context: http://old.nabble.com/Create-a-route-in-disabled-mode-tp26443574p26474389.html
> Sent from the Camel - Users mailing list archive at Nabble.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

Re: Create a route in disabled mode

Posted by mantay <ma...@web.de>.


Claus Ibsen-2 wrote:
> 
> See
> http://camel.apache.org/configuring-route-startup-ordering-and-autostartup.html
> 
> Its a new feature in the upcoming 2.1 release.
> 

Thanks for your answer, Claus. Where can I download release 2.1 or a
preliminary version? All links on the download page seem to be down. And the
Maven repository only contains versions um to 2.0.
-- 
View this message in context: http://old.nabble.com/Create-a-route-in-disabled-mode-tp26443574p26474389.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Create a route in disabled mode

Posted by Claus Ibsen <cl...@gmail.com>.
On Fri, Nov 20, 2009 at 5:29 PM, mantay <ma...@web.de> wrote:
>
> I am looking for a simple method to define (in Spring XML) a route which is
> deployed but disabled at startup time. Something like this:
>
> <route id="error.queue.to.input.queue" enabled="false">
>    <from uri="activemq:error.queue"/>
>    <to uri="activemq:input.queue"/>
> </route>
>
> I don't see a way how to do that. Actually, it should be possible because in
> the web console one may stop and restart a route already.
>

See
http://camel.apache.org/configuring-route-startup-ordering-and-autostartup.html

Its a new feature in the upcoming 2.1 release.



> What is the meaning of the <stop/> element actually?
>

Use the searchbox on the camel front page.

You can read about stop on this wiki page
http://camel.apache.org/intercept.html

There is a green tip box.


> The background is that in my scenario error messages are collected in an
> error queue and an operator should manually start the route using the web
> console such that the messages are transported to the input queue for
> another process cycle.
>

Good use case.


> --
> View this message in context: http://old.nabble.com/Create-a-route-in-disabled-mode-tp26443574p26443574.html
> Sent from the Camel - Users mailing list archive at Nabble.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