Sorry, found what I was looking for in "changes between 2.x and 1.x":
SocketAcceptor acceptor = new SocketAcceptor();
acceptor.setReuseAddress(true);
acceptor.getFilterChain().addLast("myFilter1", new MyFirstFilter());
acceptor.getFilterChain().addLast("myFilter2", new MySecondFilter());
acceptor.getSessionConfig().setTcpNoDelay(true);
// You can specify more than one addresses to bind to multiple addresses or
interface cards.
acceptor.setLocalAddress(new InetSocketAddress(8080));
acceptor.setHandler(myHandler);
acceptor.bind();
// New API restricts one bind per acceptor, and you can't bind more than once.
// The following statement will raise an exception.
acceptor.bind();
Zigor.
On 25 May 2010, at 09:05, Zigor Salvador wrote:
Hi,
MINA 2.0 related, why is there no
acceptor.setSessionConfig(SocketSessionConfig) method?
I can get the default configuration with acceptor.getSessionConfig but I don't
know how to make changes in order to, for instance, setTcpNoDelay(true) for
that acceptor.
Thank you,
Zigor.