I'm working with ActiveMQ 5.14.1 and trying to get the camelRoutesBrokerPlugin to work with namespaces.
when I setup a routes.xml file that uses the following: <routes id="esbRoute1" xmlns="http://camel.apache.org/schema/spring" xmlns:km="http://xsdrepo.xxxx.com/messaging/esb" > <route> <from uri="activemq:queue:esb.*"/> <doTry> <to uri="validator:http://xsdrepo.xxxx.com/messaging/esb/ESBMessageV3.xsd"/> <setHeader headerName="Route1"> <xpath logNamespaces="true" resultType="String">/km:FMIMessage/km:Header/km:Route/text()</xpath> </setHeader> <recipientList delimiter="false"> <header>Route1</header> </recipientList> <doCatch> <exception>org.apache.camel.ValidationException</exception> <onWhen> <simple>${exception.message}</simple> </onWhen> <to uri="activemq:queue:invalid.schema"/> </doCatch> </doTry> </route> </routes> And send a message to the esb.testit queue I receive a namespace error : Prefix must resolve to a namespace: km Normally using an import with a cameContext I would place the namespace in the camelContext element. such as : <camelContext id="esbRoute1" trace="false" streamCache="true" xmlns="http://camel.apache.org/schema/spring" xmlns:km="http://xsdrepo.xxxx.com/messaging/esb"> That would work fine but with the plugin I don't seem to have that option. Is there a way to add a namespace to the routes.xml camel file? Thanks Mike -- View this message in context: http://activemq.2283324.n4.nabble.com/cameRoutesBrokerPlugin-namespace-question-tp4720237.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.