I have read this page just now and I have a question. I pasted the example
configure file as below. In the <map> section, it defines some Executors
with a key value. What does the key value mean? Does it refer to some SU?

<sm:container ...>
  <sm:executorFactory>
    <bean class="org.apache.servicemix.executors.impl.ExecutorFactoryImpl">
      <property name="defaultConfig">
          <bean class="org.apache.servicemix.executors.impl.ExecutorConfig">
            <property name="corePoolSize" value="4"/>
            <property name="maximumPoolSize" value="-1"/>
            <property name="queueSize" value="0"/>
          </bean>
      </property>
      <property name="configs">
        <map>
          <entry key="flow.jms.servicemix-http">
            <bean
class="org.apache.servicemix.executors.impl.ExecutorConfig">
              <property name="corePoolSize" value="32"/>
              <property name="maximumPoolSize" value="-1"/>
              <property name="queueSize" value="1024"/>
            </bean>
          </entry>
          <entry key="flow.seda.servicemix-jsr181">
            <bean
class="org.apache.servicemix.executors.impl.ExecutorConfig">
              <property name="corePoolSize" value="2"/>
              <property name="maximumPoolSize" value="4"/>
              <property name="queueSize" value="-1"/>
            </bean>
          </entry>
        </map>
      </property>
    </bean>
  </sm:executorFactory>
  ...
</sm:container>



Jean-Baptiste Onofré wrote:
> 
> Hi,
> 
> you can find informations on this page:
> http://servicemix.apache.org/thread-pools.html
> 
> You can tune the component thread.
> 
> Regards
> JB
> 
> youhaodeyi wrote:
>> How can I configure thread policy for a service? For example, I want to
>> let a
>> service support at most 10 connections at the same time which means the
>> service will be run in at most ten threads. If the 11th request comes to
>> this service, it will queue the event and wait for any of the thread
>> finish
>> its job. How can I customize this in servicemix?
>> 
>> thanks.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-can-I-configure-thread-policy-for-a-service--tp25452225p25454571.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to