You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2009/10/22 09:03:53 UTC

[jira] Resolved: (CAMEL-2094) CamelContext should support autoStartup

     [ https://issues.apache.org/activemq/browse/CAMEL-2094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-2094.
--------------------------------

    Resolution: Fixed

trunk: 828332.

> CamelContext should support autoStartup
> ---------------------------------------
>
>                 Key: CAMEL-2094
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2094
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core, camel-spring
>    Affects Versions: 2.0.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.1.0
>
>
> We now have option {{autoStartup}} on routes. Lets also have this on the camel context itself so it replaces the {{shouldStartContext}} option that is a bit confusing.
> {code}
>     <camelContext id="myCamel" xmlns="http://camel.apache.org/schema/spring" autoStartup="false">
>         <route>
>             <from uri="direct:start"/>
>             <to uri="mock:result"/>
>         </route>
>     </camelContext>
> {code}
> For example the code above will not start Camel on startup. You can then later start camel manually by
> {code}
>         SpringCamelContext camel = (SpringCamelContext) ac.getBean("myCamel");
>         camel.start();
> {code}
> And then all runs.
> This also means that we will remove the option {{shouldStartContext}}! so if you use this option you must migrate to the autoStartup instead.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.