Hi,

If you are trying to implement some kind of of callback mechanism it is an
higher level application requirement and beyond the communication
facilitation focus of the Netty component.

That said, it is easily do-able, if you make the following concession...

  1> The client sends a TCP request to the Netty server with a callback
destination/address of where to send responses/messages.
  2> The client meanwhile sets up a Netty consumer route that listens on
that destination/address..
  3> The server sends on-way messages to that address from that point on.
  4> The client route processes the incoming messages from the server.

Obviously this requires that the server be able to support such a
requirement (i.e parse the payload to retrieve the callback address). 

Hope this helps.

Cheers,

Ashwin...

-----
---------------------------------------------------------
Ashwin Karpe
Apache Camel Committer & Sr Principal Consultant
FUSESource (a Progress Software Corporation subsidiary)
http://fusesource.com 

Blog: http://opensourceknowledge.blogspot.com 
---------------------------------------------------------
--
View this message in context: 
http://camel.465427.n5.nabble.com/Apache-Camel-Netty-tp5545678p5550432.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to