Resolved !!!!

The problem was the following code in the remote socket server code: 

 PrintWriter out = new PrintWriter(socket.getOutputStream(), true);             
  
 StringBuilder msg = new
StringBuilder(message.getMessage().replaceAll("[\n\r]", "")); 
 msg.append("\n");
 out.println(msg.toString());

Since, I was using textline codec and the remote server was returning "\n"
at the end of the message and using println() to write the message, the
consumer netty was reading the empty body. 

Though it still does not completely explain why I would see the correct
message once in a while, and while I see the response in debug mode. 

However, changing from println() to print() seems to have solved the issue
for now. 

Thanks  a lot for your help. I really appreciate it. 

Thanks
Vineet



--
View this message in context: 
http://camel.465427.n5.nabble.com/Netty-messages-not-propagated-back-from-netty-producer-tp5741315p5742282.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to