You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bu...@apache.org on 2016/04/12 23:18:36 UTC

svn commit: r985515 - in /websites/production/camel/content: cache/main.pageCache spring-boot.html

Author: buildbot
Date: Tue Apr 12 21:18:36 2016
New Revision: 985515

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/cache/main.pageCache
    websites/production/camel/content/spring-boot.html

Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/camel/content/spring-boot.html
==============================================================================
--- websites/production/camel/content/spring-boot.html (original)
+++ websites/production/camel/content/spring-boot.html Tue Apr 12 21:18:36 2016
@@ -112,7 +112,7 @@ public class MyRoute extends RouteBuilde
         from("timer:foo").to("log:bar");
     }
 }]]></script>
-</div></div><p>Then these routes will be started automatically.</p><p>You can customize the Camel application in the&#160;<code>application.properties</code> or&#160;<code>application.yml</code> file.&#160;</p><h3 id="SpringBoot-Auto-configuredCamelcontext"><span style="line-height: 1.5625;">Auto-configured Camel context</span></h3><p>The most important piece of functionality provided by the Camel auto-configuration is <code>CamelContext</code> instance. Camel&#160;auto-configuration&#160;creates a&#160;<code>SpringCamelContext</code> for you and takes care of the proper initialization and shutdown of that context. The created&#160;Camel context is also registered in the Spring application context (under <code>camelContext</code> bean name), so you can access it just&#160;as &#160;any other Spring bean.</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+</div></div><p>Then these routes will be started automatically. To keep the main thread blocked so that Camel stays up, either include the <em>spring-boot-starter-web</em> dependency, or add&#160;camel.springboot.main-run-controller=true to your <code>application.properties</code>&#160;or&#160;<code>application.yml</code>&#160;file.&#160;</p><p>You can further customize the Camel application in the&#160;<code>application.properties</code> or&#160;<code>application.yml</code> file with&#160;<em>camel.springboot.* properties.</em></p><h3 id="SpringBoot-Auto-configuredCamelcontext"><span style="line-height: 1.5625;">Auto-configured Camel context</span></h3><p>The most important piece of functionality provided by the Camel auto-configuration is <code>CamelContext</code> instance. Camel&#160;auto-configuration&#160;creates a&#160;<code>SpringCamelContext</code> for you and takes care of the proper initialization and shutdown of that context. The created&#160;Camel context is also registe
 red in the Spring application context (under <code>camelContext</code> bean name), so you can access it just&#160;as &#160;any other Spring bean.</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[@Configuration
 public class MyAppConfig {