Re: how can a server be a non-blocking client simultaneously?
jgalyan
jgalyan at adbrite.com
Fri Jan 7 16:50:01 EST 2011
I'm doing this in several projects for my company. I just set up a
ClientBootstrap and so forth and use almost as though in a standalone
application (I wrap all that in a class I can call from the server's inbound
connection handler). You just have to be extra careful about thread safety
in your code. One project, I also had to declare an interface that my
server's handler implements, so I can pass that handler instance to the
client to call-back when it receives a response. Pretty simple stuff;
again, you just have to be extra careful about thread safety in your code.
--
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/how-can-a-server-be-a-non-blocking-client-simultaneously-tp5898427p5900974.html
Sent from the Netty User Group mailing list archive at Nabble.com.
More information about the netty-users
mailing list