Thursday, January 12, 2012

Spring integration and version 2.0 schema files

Something to note when upgrading Spring Integration from version 2.0 to 2.1.0 -

Schema location to the custom namespace used to be specified this way:
<beans xmlns="http://www.springframework.org/schema/beans"
 xmlns:int="http://www.springframework.org/schema/integration"
 xsi:schemaLocation="http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration-2.0.xsd

This either has to be explicitly the 2.1 version schema or version less, otherwise the start-up of the container aborts:
<beans xmlns="http://www.springframework.org/schema/beans"
 xmlns:int="http://www.springframework.org/schema/integration"
 xsi:schemaLocation="http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration-2.1.xsd

More details here: https://github.com/SpringSource/spring-integration/wiki/Spring-Integration-2.0-to-2.1-Migration-Guide

No comments:

Post a Comment