[
https://issues.apache.org/jira/browse/SMX4-791?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Freeman Fang updated SMX4-791:
------------------------------
Summary: Make allowCoreThreadTimeOut name consistent across mbeans and
properties (was: Make allowsCoreThreadTimeOut name consistent across mbeans
and properties)
> Make allowCoreThreadTimeOut name consistent across mbeans and properties
> ------------------------------------------------------------------------
>
> Key: SMX4-791
> URL: https://issues.apache.org/jira/browse/SMX4-791
> Project: ServiceMix 4
> Issue Type: Improvement
> Reporter: Freeman Fang
> Assignee: Freeman Fang
>
> Currently different names are used for properties and different in mbean
> display
> org.apache.servicemix.nmr.osgi.ExecutorConfigurator has
> allowCoreThreadsTimeout (with 's' and small 'o') and this is the name of the
> property that should be used in config file for it to work (ExecutorConfig in
> smx-utils has allowCoreThreadsTimeout too).
> Then ExecutorFactoryImpl uses it to populate allowCoreThreadTimeOut property
> of thread pool executor (no 's', big 'O')
> {code}
> if (config.isAllowCoreThreadsTimeout()) {
> try {
> Method mth =
> service.getClass().getMethod("allowCoreThreadTimeOut", new
> Class[]{boolean.class});
> mth.invoke(service, new Object[]{Boolean.TRUE});
> }
> {code}
> So two versions of the name of the same property. Probably all should be
> changed to the one used on ThreadPoolExecutor as "allowCoreThreadTimeOut"
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira