Background : I'm running camel 2.18.3 on a AWS karaf 4.1.0 platform. I have a simple route using restlet that works fine but when using a route with a endpoint activemq artemis it fails with the following error.
org.osgi.service.blueprint.container.ComponentDefinitionException: Name jmsConnectionFactory is already instanciated as null and cannot be removed. I'm not sure what I'm doing wrong thanks for the help. My route.xml <?xml version="1.0" encoding="UTF-8"?> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:jaas="http://karaf.apache.org/xmlns/jaas/v1.0.0" xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0"> <bean id="jmstx" class="org.apache.camel.component.jms.JmsComponent"> <property name="configuration" ref="jmsConfig" /> </bean> <bean id="jmsConfig" class="org.apache.camel.component.jms.JmsConfiguration"> <property name="connectionFactory" ref="jmsConnectionFactory"/> <property name="transactionManager" ref="jmsTransactionManager"/> <property name="transacted" value="true"/> <property name="cacheLevelName" value="CACHE_CONNECTION"/> </bean> <bean id="jmsTransactionManager" class="org.springframework.jms.connection.JmsTransactionManager"> <property name="connectionFactory" ref="jmsConnectionFactory" /> </bean> <bean id="jmsConnectionFactory" class="org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory"> <property name="brokerURL" value="failover:(tcp://54.211.238.177:61616,tcp://54.235.6.199:61616)"/> <property name="userName" value="xxxx" /> <property name="password" value="xxxx" /> <property name="watchTopicAdvisories" value="false" /> </bean> <camelContext id="msgRouter1" xmlns="http://camel.apache.org/schema/blueprint"> <route errorHandlerRef="myDeadLetterErrorHandler"> <from uri="jmstx:queue:esb.*"/> <doTry> <setHeader headerName="Route1"> <xpath logNamespaces="false" 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="jmstx:queue:invalid.schema"/> </doCatch> </doTry> </route> </camelContext> </blueprint> -- View this message in context: http://camel.465427.n5.nabble.com/Camel-instanciated-as-null-tp5796043.html Sent from the Camel - Users mailing list archive at Nabble.com.
