camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: spring configuration error
Date Tue, 19 Aug 2008 09:53:52 GMT
2008/8/19 pevgen <pevgen@km.ru>:
>
> If i commented on some strings in my config, then i haven't got errors.
> For example, this configuration run ok
> ....
>    <camelContext xmlns="http://activemq.apache.org/camel/schema/spring"
> useJmx="true" id="idCamelContext">
>        <jmxAgent id="agent" createConnector="true"/>
>        <!--<route>-->
>            <!--<from uri="vm:fromScheduler"/>-->
>            <!--<process ref="idConfigurator"/>-->
>            <!--<process ref="idGroupTaskSaver"/>-->
>        <!--</route>-->
>    </camelContext>

I wonder if using the Spring XML namespaces also fails?

e.g. try parse this file...

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:context="http://www.springframework.org/schema/context"
       xsi:schemaLocation="
       http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
       http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd
       http://activemq.apache.org/camel/schema/spring
http://activemq.apache.org/camel/schema/spring/camel-spring.xsd">

  <!-- lets use a standard spring 2 namespace -->
  <context:component-scan base-package="com.acme"/>

</beans>

If it works, then Spring 2 XML namespaces work - otherwise they don't.
If they don't its probably some issue with Spring 2 and Oracle's XML
parser that you should report to the Spring forums.


-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://open.iona.com

Mime
View raw message