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 postConfigurationbeforeStart(CamelContext context) { // your custom configuration goes here } } } } |
Method CamelContextConfiguration#
beforeStart(CamelContext)
will be call just before the Spring starts the 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:
...