I go through example given in Mina for proxy but it is not clear. 
Servertoproxyiohandler class not clear in example. Please share me working 
example of proxy if you have. It will help me to for speedy development.

Many thanks for reply.

Regards,
Nikunj Patel

> On 22-Mar-2015, at 8:23 am, Jon V. <[email protected]> wrote:
> 
> I am going to take a little leap and say that Java is probably not the best
> to develop a proxy application.  Mina's design is also more optimized for
> request response type situations and may introduce some unnecessary latency
> into the proxy.
> 
> Otherwise, it is just as Emmanuel said. You write all the received data
> into the other IoSession.
>> On Mar 21, 2015 8:15 PM, "Emmanuel Lécharny" <[email protected]> wrote:
>> 
>> Le 21/03/15 17:33, Nikunj Patel a écrit :
>>> Dear All,
>>> 
>>> I am going to develop network application using apache mina where
>>> application continually connected to remote server and also open port for
>>> client connection. When any client send message it will pass to remote
>>> server and response received from remote server it will pass to
>> respective
>>> client which request has sent. My TCP Server must keep live connection
>> with
>>> remote tcp server.
>>> 
>>> architecture would be like
>>> 
>>> TCP Client1 <------> TCP Server <------> Remote TCP Server
>>> TCP Client2
>>> .
>>> .
>>> TCP Clientn
>>> 
>>> I have no idea how I can response back to tcp client when response
>> received
>>> from remote tcp server.
>>> 
>>> Please find attached my sample application for your reference and guide
>> me
>>> how can I achieve it.
>> The attachement didn't make it.
>> 
>> Regardless, you are just writing a proxy server. I suppose that your
>> proxy send a request to the remote server when it receives a message
>> from your client, so sending back a response to this client when your
>> server receives the response from the remote server is as simple as
>> writing the response into the client session.
>> 

Reply via email to