camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roger2015 <>
Subject Cannot Auto Create Component - Netty4
Date Thu, 01 Oct 2015 11:19:14 GMT
Hi everyone,

   I am new to camel & as well as netty4. please feel free correct me if I
am wrong.
   *Objective*: To use netty4 as TCP server & consumer in camel. 

   *What I have done so far:*

    I have written a java class to instantiate DefaultCamelContext and
created a camel-context xml (Spring DSL). At the same time, I have also
imported all camel lib (i.e. DefaultCamelContext & camel-netty4-2.15.2.jar &
etc) into my eclipse java project. Then, I read in the route information
from the camel-context.xml to CamelContext object - which will start all the
routes. The routes includes using of "file" and "activemq" components. All
these are running fine.

    How I include the activemq component is by including <bean id="broker"
class="org.apache.activemq.camel.component.ActiveMQComponent"> in the
    Now, I need to include a new route which is from netty4:tcp:{IP:port} to
file component.

    However, when I run my program, it keeps complaining that -
FailedToCreateRouteException - Cannot auto create component:netty4

    1) Am I implementing correctly?
    2) How to resolve the FailedToCreateRouteException?

    Thanks in advanced.


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

View raw message