Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
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')
if (config.isAllowCoreThreadsTimeout()) { try { Method mth = service.getClass().getMethod("allowCoreThreadTimeOut", new Class[]{boolean.class}); mth.invoke(service, new Object[]{Boolean.TRUE}); }
So two versions of the name of the same property. Probably all should be changed to the one used on ThreadPoolExecutor as "allowCoreThreadTimeOut"
Attachments
Issue Links
- is related to
-
SMX4NMR-264 Make allowsCoreThreadTimeOut name consistent across mbeans and properties
- Resolved
- relates to
-
SMXCOMP-863 Make allowsCoreThreadTimeOut name consistent across mbeans and properties
- Resolved