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

On 01/30/2014 04:37 PM, Laci Gaspar wrote:
Thanks for your answer.

I don't seem to have that command in karaf (2.3.3). I get: Command not
found: bundle:services

Is it necessary to have the ConnectionFactory installed as a service? I
wanted to do that within my program in java.

best,
Laci

On 30.01.2014 16:29, Christopher Arnold wrote:
Changing subject to keep thread intace

It looks like your bundle is waiting to get the ConnectionFactory
service for the <reference>.  Try running bundle:services | grep
ConnectionFactory to see if you have a bundle that's exporting a
ConnectionFactory service.

-Chris

On 01/30/2014 09:06 AM, Laci Gaspar wrote:
Sorry to be asking again, but I'm stuck.

I can't get a camel route with an AMQ component to run in karaf.

The error I'm getting is
2014-01-30 16:02:55,272 | INFO  | l Console Thread |
BlueprintContainerImpl           | container.BlueprintContainerImpl
344 | 7 - org.apache.aries.blueprint.core - 1.1.0 | Bundle
ch.curabill.msp.service.amq-route is waiting for dependencies
[(objectClass=javax.jms.ConnectionFactory)]

My blueprint.xml is:
    <bean id="jms2FileRoute"
class="ch.curabill.msp.service.MyRouteBuilder">

     </bean>
    <camelContext id="jms2file"
xmlns="http://camel.apache.org/schema/blueprint";>
        <routeBuilder ref="jms2FileRoute" />
    </camelContext>

    B

    <bean id="jmsConfig"
class="org.apache.camel.component.jms.JmsConfiguration">
        <property name="connectionFactory" ref="jmsConnectionFactory" />
        <property name="transacted" value="false" />
    </bean>

    <bean id="activemq"
class="org.apache.activemq.camel.component.ActiveMQComponent">
        <property name="configuration" ref="jmsConfig" />
    </bean>


Activemq is running standalone.

Please help.
Regards,
laci





--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to