[
https://issues.apache.org/jira/browse/CAMEL-12682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16556123#comment-16556123
]
Zoran Regvart commented on CAMEL-12682:
---------------------------------------
[~christianr] are you using Spring Boot? I believe the documentation is
relevant forĀ {{CamelContext}} created using {{CamelContextFactoryBean}} used
for XML and java configuration, not in Spring Boot auto-configuration. We can
easily add the support for custom registries in Spring Boot.
> Custom ApplicationContextRegistry extension NOT discovered
> ----------------------------------------------------------
>
> Key: CAMEL-12682
> URL: https://issues.apache.org/jira/browse/CAMEL-12682
> Project: Camel
> Issue Type: Improvement
> Components: camel-spring
> Affects Versions: 2.21.1
> Reporter: Christian Ribeaud
> Priority: Minor
>
> Up to this documentation
> [page|http://camel.apache.org/advanced-configuration-of-camelcontext-using-spring.html],
> I got the impression that following code snippet:
> {code:java}
> @Bean
> public static Registry createMyApplicationContextRegistry(ApplicationContext
> applicationContext) {
> return new MyApplicationContextRegistry(applicationContext);
> }
> {code}
> in my *Spring* {{Application.java}} startup class should override the default
> {{ApplicationContextRegistry}} used.
> This does NOT work in my case. What works is annotating (with {{@Bean}}) my
> custom {{SpringCamelContext}} extension, which then overrides the
> {{createRegistry}} method.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)