LibraryToggle FramesPrintFeedback

Spring Framework

Spring version

Since Apache Camel 2.10, the version of Spring that you can use with Apache Camel must be 3.0.7 (or later). Spring 3.1.1 is also supported.

New schema location

If you explicitly specify the location of the Spring schema in your Spring configuration files, you must change the schema location to point at either the 3.0 Spring schema or the 3.1 Spring schema.

The Spring 3.0 schema is located at the following Web page:

http://www.springframework.org/schema/beans/spring-beans-3.0.xsd

The Spring 3.1 schema is located at the following Web page:

http://www.springframework.org/schema/beans/spring-beans-3.1.xsd

For example, assuming your schema locations are specified in the root beans element, you could specify the new Spring schema location as follows:

<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="
       http://www.springframework.org/schema/beans
         http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">

Order of dependency injection in Spring 3.0

It appears that the order in which beans are dependency injected has changed in Spring 3.0. This could potentially affect your existing Apache Camel applications when you upgrade. To gain more control over the order of dependency injection, you could add the depends-on attribute to some of your bean definitions.

Spring 3.0 new features

For a summary of the new features in Spring 3.0, see New Features and Enhancements in Spring 3.0.

Comments powered by Disqus