title: Apache Camel TCP client communicate to a server
body: <p>I am new to apache camel. What I am trying to do is I have exposed and Rest api to get data.
  From that I need to communicate to an existing TCP server(Simple java server application) to retrieve data and send back to a client. What I have picked is Apache camel to do this integration.</p>
  <pre><code> rest()
                  .consumes(&quot;application/json&quot;).produces(&quot;application/json&quot;)
                  .get(&quot;/weather2/{city}&quot;).outType(WeatherDto.class).to(&quot;direct:get-weather-data&quot;)
  
  from(&quot;direct:get-weather-data&quot;)
                  .process(this::setTCPMsg)
                  .to(&quot;netty://tcp://127.0.0.1:9898&quot;)  
  </code></pre>
  <p>Above is the way I have defined the routes but when I try to run the appication I get below eror</p>
  <p><strong>org.apache.camel.FailedToCreateRouteException: Failed to create route route5 at: &gt;&gt;&gt; To[netty://tcp://127.0.0.1:9898] &lt;&lt;&lt; in route: Route(route5)[From[direct:get-weather-data] -&gt; [process[Proc... because of No endpoint could be found for: netty://tcp://127.0.0.1:9898, please check your classpath contains the needed Camel component jar.</strong></p>
  <p>Please advice How to solve this issue.</p>