Hi,


Maybe my question wasn't clear. Any idea how to configure below information in 
Spring instead of hard coded in java?





Configuration - Many different parameters can be set for a specific session :



*         receive buffer size

*         sending buffer size

*         Idle time

*         Write timeout





Thanks







-----Original Message-----
From: Hu, Mei Mei [ICG-IT]
Sent: Friday, August 26, 2011 5:48 PM
To: '[email protected]'
Subject: 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




Reply via email to