camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "gustavo.maurizio" <gmauri...@me.com>
Subject Re: camel 2.18 activemq not working under karaf
Date Mon, 31 Oct 2016 14:23:03 GMT
solved the problem. Seems like the bean definition for ActiveMQ needs the
connection factory explicitly defined.
    
    <bean id="activemq"
class="org.apache.activemq.camel.component.ActiveMQComponent" >
        <property name="connectionFactory">
          <bean class="org.apache.activemq.ActiveMQConnectionFactory">
            <property name="brokerURL" value="${activemq.url}"/>
            <property name="userName"  value="${activemq.username}"/>
            <property name="password"  value="${activemq.password}"/>
          </bean>
        </property>
    </bean>


In the past, we used just 
    
    <bean id="activemq"
class="org.apache.activemq.camel.component.ActiveMQComponent" >
            <property name="brokerURL" value="${activemq.url}"/>
            <property name="userName"  value="${activemq.username}"/>
            <property name="password"  value="${activemq.password}"/>
    </bean>




--
View this message in context: http://camel.465427.n5.nabble.com/camel-2-18-activemq-not-working-under-karaf-tp5789455p5789520.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message