}
public boolean setThreadPoolConfiguration() {
try {
ServicesManager servicesManager = ServicesManager.getInstance();
IBatchConfig batchConfig = servicesManager.getBatchRuntimeConfiguration();
GlassfishThreadPoolConfigurationBean threadPoolBean = new GlassfishThreadPoolConfigurationBean();
threadPoolBean.setIdleThreadTimeout(helper.getMaxIdleThreadTimeout());
threadPoolBean.setMaxQueueSize(helper.getMaxQueueSize());
threadPoolBean.setMaxThreadPoolSize(helper.getMaxThreadPoolSize());
threadPoolBean.setMinThreadPoolSize(helper.getMinThreadPoolSize());
batchConfig.setGlassfishThreadPoolConfigurationBean(threadPoolBean);
threadPoolInitialized = true;
} catch (Throwable th) {
threadPoolInitialized = false;
if (logger.isLoggable(Level.FINE))
logger.log(Level.FINE, "Exception in setThreadPoolConfiguration: ", th);