mirror of https://github.com/apache/activemq.git
[AMQ-6899] Use generic spring schema name (working with any Spring version) in RuntimeConfigurationPlugin
This commit is contained in:
parent
f1f2a72720
commit
c83f7e9aa8
|
@ -233,7 +233,11 @@ public class RuntimeConfigurationBroker extends AbstractRuntimeConfigurationBrok
|
|||
|
||||
ArrayList<StreamSource> schemas = new ArrayList<StreamSource>();
|
||||
schemas.add(new StreamSource(getClass().getResource("/activemq.xsd").toExternalForm()));
|
||||
schemas.add(new StreamSource(getClass().getResource("/org/springframework/beans/factory/xml/spring-beans-3.0.xsd").toExternalForm()));
|
||||
if (getClass().getResource("/org/springframework/beans/factory/xml/spring-beans-3.0.xsd") != null) {
|
||||
schemas.add(new StreamSource(getClass().getResource("/org/springframework/beans/factory/xml/spring-beans-3.0.xsd").toExternalForm()));
|
||||
} else {
|
||||
schemas.add(new StreamSource(getClass().getResource("/org/springframework/beans/factory/xml/spring-beans.xsd").toExternalForm()));
|
||||
}
|
||||
schema = schemaFactory.newSchema(schemas.toArray(new Source[]{}));
|
||||
}
|
||||
return schema;
|
||||
|
|
Loading…
Reference in New Issue