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

camel-spring - Spring 3.0.x - Add depends-on in the namespace handler to make it easy for end users to use Spring and Camel without considering ordering of their beans

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.0, 2.3.0
    • 2.3.0
    • camel-spring
    • None

    Description

      Spring 3.0.x behaves differently when discovering bean dependencies. For example if you have a <routeBuilder ref="xxx"/> in <camelContext/> than the xxx bean will not by default be dependent on the <camelContext/>. This causes Spring maybe to create the xxx before the camelContext. And you most likely want CamelContext to be created beforehand, so IoC allows you to inject CamelContext into that xxx or whatnot.

      See nabble
      http://old.nabble.com/Spring-3.0-and-Camel-2.2---Route-configure%28%29-called-before-Spring-beans-injected-ts28415437.html

      We do already have logic for this in the namespace handler, but we need to add it to more places to have it working for all kind of camel types.

      Attachments

        Activity

          People

            njiang Willem Jiang
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: