camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anjenson <>
Subject No component found with schema: jms
Date Sat, 27 Sep 2014 08:47:17 GMT
Hi, everyone.

I am working on a project where we decided to add some interaction using jms
and hornetq as provider.
I am quite new to Camel so I ran into a problem some if you may refer as
The goal was to initialize connection factory and add the jms component.
However, as I understand it can't be done directly in the route builder. So
I created camel-config.xml and placed it to the resources/ directory.
I filled it in the following way:

<beans xmlns=""


    <bean id="jndiTemplate" class="org.springframework.jndi.JndiTemplate">
        <property name="environment">

    <bean id="jmsQueueConnectionFactory"
        <property name="jndiTemplate">
            <ref bean="jndiTemplate"/>
        <property name="jndiName">

    <bean name="jms" class="org.apache.camel.component.jms.JmsComponent">
        <property name="connectionFactory" ref="jmsQueueConnectionFactory"/>

The project doesn't use Spring so it was the only example of the xml I have
found that doesn't make use of Spring.
In the route builder I use from("jms:queue:top");
However, when I start the project it throws FailedToCreateEndpointException
and states "No component found with schema: jms".
I suppose that the xml file is simply not used but I just can't understand
how to point to it.
Looking forward to hearing any advice.

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message