<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style id="owaParaStyle">P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</style>
</head>
<body fPStyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<p>Hi Guys</p>
<p> </p>
<p> There are 2 Modules in my project. I used Netty as channel between them.I used the long connection. In the pipelinefactory of clientside module, the code as follows</p>
<p> </p>
<p> public ChannelPipeline getPipeline()<br>
throws Exception<br>
{<br>
ChannelPipeline pipeline = Channels.pipeline();<br>
pipeline.addLast("decoder", new MessageDecoder());<br>
pipeline.addLast("ThreadPoolHandler", executionHandler);<br>
pipeline.addLast("handler", new ClientHandler());<br>
return pipeline;<br>
}</p>
<p> </p>
<p>the code get response as follows:</p>
<p> </p>
<p> ClientHandler handler = channel.getPipeline().get(ClientHandler.class);<br>
return handler.getResponse(request);</p>
<p> </p>
<p>My problem is:</p>
<p> 1. is there only one ClientHandler instance even I used ExecutionHandler?</p>
<p> 2. When there is multi-thread send request, all the get response is blocked in the ClientHandler, How should i improve the client concurrency?</p>
<p> </p>
<p>Any suggestion is many thanks.</p>
<p> </p>
<p>Sincerely</p>
<p>Liuxianning.</p>
<p> </p>
</div>
</body>
</html>