[ 
https://issues.apache.org/jira/browse/CAMEL-12682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16556158#comment-16556158
 ] 

Christian Ribeaud commented on CAMEL-12682:
-------------------------------------------

This is correct. I'm using *Spring Boot*. But I just saw that you've already 
resolved the issue... :)
Thanks a lot!

> 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
>            Assignee: Zoran Regvart
>            Priority: Minor
>             Fix For: 2.23.0
>
>
> 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)

Reply via email to