Thanks for your answer, but I have already tried that. Same error:

2014-01-30 16:53:47,531 | INFO | l Console Thread | BlueprintContainerImpl | container.BlueprintContainerImpl 344 | 7 - org.apache.aries.blueprint.core - 1.1.0 | Bundle org.apache.camel.example.jmstofile.camel-example-jms-file is waiting for dependencies [(objectClass=javax.jms.ConnectionFactory)]

this is my blueprint.xml:
<bean id="activemqConnectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
        <property name="brokerURL" value="tcp://localhost:61616" />
    </bean>
<bean id="jmsConfig" class="org.apache.camel.component.jms.JmsConfiguration"> <property name="connectionFactory" ref="activemqConnectionFactory" />
        <property name="transacted" value="false" />
    </bean>
<bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent">
        <property name="configuration" ref="jmsConfig" />
    </bean>


Any ideas?

Regards
Laci


On 30.01.2014 16:50, Jean-Baptiste Onofré wrote:
Use ls command with Karaf 2.3.3.

No the ConnectionFactory doesn't need to be as a OSGi service. You can create the connection factory in your code. But in your blueprint, you are looking for the connection factory as a service:

<reference id="jmsConnectionFactory" interface="javax.jms.ConnectionFactory"/>

Instead of that, you can create the connection factory as a bean, like this:

<bean id="activemqConnectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
        <property name="brokerURL" value="tcp://localhost:61616" />
    </bean>

Regards
JB


Reply via email to