Hello,
I have been implementing peer-to-peer message processing and sending
mechanism by using MINA. I have examined all examples. I have a question
on addition of thread pools filters to connectors and acceptors. I have
been using a modified version of SimpleServiceRegistry for server-side
actions and using its thread pool filters for socket protocol acceptor.
On the same process, i have added a IoProtocolConnector for connecting a
peer and opening a session. Do I have to add thread pool filters to my
connector for scalability similar to below lines? If answer is yes, may
i use the same thread pool which i used for acceptors? Or should i
create and use a new pool ?
connector.getIoConnector().getFilterChain().addFirst("threadPool",ioThreadPoolFilter);
connector.getFilterChain().addFirst("threadPool",
protocolThreadPoolFilter);
thanks lot,
Serkan