Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12682

Custom ApplicationContextRegistry extension NOT discovered

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Implemented
    • 2.21.1
    • 2.23.0
    • camel-spring
    • None
    • Unknown

    Description

      Up to this documentation page, I got the impression that following code snippet:

      @Bean
      public static Registry createMyApplicationContextRegistry(ApplicationContext applicationContext) {
        return new MyApplicationContextRegistry(applicationContext);
      }
      

      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.

      Attachments

        Activity

          People

            zregvart Zoran Regvart
            christianr Christian Ribeaud
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: