THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||
---|---|---|
| ||
@Configuration public class MyAppConfig { ... @Bean CamelContextConfiguration contextConfiguration() { return new CamelContextConfiguration() { @Override void beforeStartbeforeApplicationStart(CamelContext context) { // your custom configuration goes here } }; } } |
Method CamelContextConfiguration#
beforeStartbeforeApplicationStart(CamelContext)
will be call called just before the Spring starts the autocontext is started, so the CamelContext
instance passed to this callback is fully auto-configured CamelContext
.
Disabling JMX
To disable JMX of the auto-configured CamelContext
use camel.springboot.jmxEnabled
property (JMX is enabled by default). For example you could add the following property to your application.properties
file:
...