I see. If Server_9900 is the sender/producer/client, then the name Server_9900 is a misnomer, but I understand now server has a different meaning in your program. I would do something like this to send to the consumer, and get a response, copied from a unit test[1].
String reply = template.requestBody("netty:tcp://localhost:{{port}}?textline=true&sync=true", "Hello World", String.class); Also, is there any reason you're using Camel 2.5.0? I encourage you to try 2.8.3 instead, well 2.8.2 until 2.8.3 is available in maven really soon. [1] http://svn.apache.org/repos/asf/camel/trunk/components/camel-netty/src/test/java/org/apache/camel/component/netty/NettyTextlineInOutTest.java Taariq On Wed, Nov 23, 2011 at 2:45 PM, newbiee <m_ess...@hotmail.com> wrote: > Tariq, > > Thanks for the reply. > > Server_9900 is written to send messages to CAMEL, and to it "java program" > needs to be started prior to running CAMEL application (is this not the > right thing to do) . How can otherwise, messages be sent to port 9201 for > CAMEL to consume? > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/CAMEL-is-throwing-error-tp5014337p5016532.html > Sent from the Camel - Users mailing list archive at Nabble.com. >