[
https://issues.apache.org/activemq/browse/CAMEL-390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46256#action_46256
]
James Strachan commented on CAMEL-390:
--------------------------------------
I think this bug was raised to try help folks figure out issues caused by the
xmlns being redeclared. e.g. something like this
{code}
<?xml version="1.0" encoding="UTF-8"?>
<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-2.5.xsd
http://activemq.apache.org/camel/schema/spring
http://activemq.apache.org/camel/schema/spring/camel-spring.xsd">
<camelContext id="camel" useJmx="false" mbeanServer="mbeanServer"
xmlns="http://activemq.apache.org/camel/schema/spring">
<package>org.apache.camel.example.spring</package>
</camelContext>
<!-- DOES THIS FAIL? -->
<bean id="foo" class="whatnot"/>
</beans>
{code}
I can't remember if the xmlns redeclaration of the default namespace on the
<camelContext/> disappears again after the </camelContext>. Does something like
the above work? If not can we generate some kinda useful error message somehow?
> if folks overload xmlns to use camel, then define beans with <bean ...> Camel
> should generate an error with a useful error message
> ----------------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-390
> URL: https://issues.apache.org/activemq/browse/CAMEL-390
> Project: Apache Camel
> Issue Type: Improvement
> Reporter: James Strachan
> Assignee: Hadrian Zbarcea
> Priority: Critical
> Fix For: 2.0.0
>
>
> See this thread...
> http://www.nabble.com/BeanFactoryAware-%28Spring%29-tp16122107s22882p16124218.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.