You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@mina.apache.org by "Hu, Mei Mei " <me...@citi.com> on 2011/08/26 23:47:35 UTC

How to set SocketSessionConfig in spring config

Hi,

I got org.apache.mina.core.write.WriteTimeoutException. So I want to a longer time duration for WriteTimeout. Where to config it in spring? There is no setSessionConfig() method in NioSocketAcceptor per the API doc.


<bean id="ioAcceptor" class="org.apache.mina.transport.socket.nio.NioSocketAcceptor" init-method="bind" destroy-method="unbind">
          <property name="defaultLocalAddress" value=":9000" />
          <property name="handler" ref="snapshotQueryHandler" />
          <property name="filterChainBuilder" ref="filterChainBuilder" />
</bean>


Thanks,
Mary