directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nik...@apache.org
Subject svn commit: r427918 - /directory/trunks/mina/integration-spring/src/main/java/org/apache/mina/integration/spring/IoAcceptorFactoryBean.java
Date Wed, 02 Aug 2006 06:44:07 GMT
Author: niklas
Date: Tue Aug  1 23:44:07 2006
New Revision: 427918

URL: http://svn.apache.org/viewvc?rev=427918&view=rev
Log:
Updated Spring configuration in the JavaDoc. With the introduction of ThreadModel and the
generalization of ThreadPoolFilter the old example wouldn't work.

Modified:
    directory/trunks/mina/integration-spring/src/main/java/org/apache/mina/integration/spring/IoAcceptorFactoryBean.java

Modified: directory/trunks/mina/integration-spring/src/main/java/org/apache/mina/integration/spring/IoAcceptorFactoryBean.java
URL: http://svn.apache.org/viewvc/directory/trunks/mina/integration-spring/src/main/java/org/apache/mina/integration/spring/IoAcceptorFactoryBean.java?rev=427918&r1=427917&r2=427918&view=diff
==============================================================================
--- directory/trunks/mina/integration-spring/src/main/java/org/apache/mina/integration/spring/IoAcceptorFactoryBean.java
(original)
+++ directory/trunks/mina/integration-spring/src/main/java/org/apache/mina/integration/spring/IoAcceptorFactoryBean.java
Tue Aug  1 23:44:07 2006
@@ -57,16 +57,24 @@
  *         class="org.apache.mina.integration.spring.DefaultIoFilterChainBuilderFactoryBean">
  *     <property name="filters">
  *       <list>
- *         <bean class="org.apache.mina.filter.ThreadPoolFilter">
- *           <!-- Threads will be named IoWorker-1, IoWorker-2, etc -->
- *           <constructor-arg value="IoWorker"/>
- *           <property name="maximumPoolSize" value="10"/>
- *         </bean>
  *         <bean class="org.apache.mina.filter.LoggingFilter"/>
  *       </list>
  *     </property>
  *   </bean>
  *
+ *  <!-- By default MINA uses a PooledThreadModel. This demonstrates how to 
+ *          use your own with some non default settings. The threadModel will 
+ *          be set on the SocketAcceptorConfig defined below. To configure a 
+ *          ThreadPoolFilter directly you will have to use the ThreadModel.MANUAL 
+ *          ThreadModel instead. -->
+ *  <property name="threadModel">
+ *   <bean class="org.apache.mina.common.PooledThreadModel">
+ *     <!-- Threads will be named IoWorker-1, IoWorker-2, etc -->
+ *     <property name="threadNamePrefix" value="IoWorker"/>
+ *     <property name="maximumPoolSize" value="10"/>
+ *     <property name="keepAliveTime" value="30000"/>
+ *   </bean>
+ *
  *   <bean id="ioAcceptor" class="org.apache.mina.integration.spring.IoAcceptorFactoryBean">
  *     <property name="target">
  *       <bean class="org.apache.mina.transport.socket.nio.SocketAcceptor"/>
@@ -80,6 +88,7 @@
  *             <bean class="org.apache.mina.transport.socket.nio.SocketAcceptorConfig">
  *               <property name="filterChainBuilder" ref="filterChainBuilder"/>
  *               <property name="reuseAddress" value="true"/>
+ *               <property name="threadModel" ref="threadModel"/> 
  *             </bean>
  *           </property>
  *         </bean>



Mime
View raw message