You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Sergey Zhemzhitsky (JIRA)" <ji...@apache.org> on 2011/09/20 16:30:09 UTC

[jira] [Created] (SMX4NMR-282) It would be nice to be able to configure producer-specific thread-pools

It would be nice to be able to configure producer-specific thread-pools
-----------------------------------------------------------------------

                 Key: SMX4NMR-282
                 URL: https://issues.apache.org/jira/browse/SMX4NMR-282
             Project: ServiceMix NMR
          Issue Type: Improvement
    Affects Versions: 1.4.0
            Reporter: Sergey Zhemzhitsky


For now it is possible to configure consumer-specific thread pools by means of the org.apache.servicemix.nmr.cfg file.

For example to configure thread pool for the consumer that consumes messages from MyEndpoint it is necessary to add the following settings into the org.apache.servicemix.nmr.cfg:

nmr.endpoint.MyEndpoint.corePoolSize=20
nmr.endpoint.MyEndpoint.maximumPoolSize=20
nmr.endpoint.MyEndpoint.queueSize=4096
nmr.endpoint.MyEndpoint.allowCoreThreadTimeOut=true
nmr.endpoint.MyEndpoint.keepAliveTime=60000

It's hardly possible to configure the thread pool from the side of the producer because endpoint name looks like this: org.apache.servicemix.camel.nmr.ServiceMixProducer-org.apache.servicemix.nmr.core.util.UuidGenerator@daece7. So the default thread pool will be used.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira