if (wrappedConnector && this.connector.getState().equals(LifecycleState.STARTED)) {
return;
}
String executorName=null;
Executor executor=null;
if (this.connector.getAttribute("executor") != null) {
Object value = connector.getAttribute("executor");
if (value == null)
executorName=null;
if (value instanceof String)
executorName= (String)value;
if(value instanceof Executor){
executorName= ((Executor) value).getName();
}
executor = TomcatServerGBean.executors.get(executorName);
if (executor == null) {
log.warn("No executor found with name:" + executorName+", trying to get default executor with name 'DefaultThreadPool'");
executor = TomcatServerGBean.executors.get("DefaultThreadPool");
}
} else {
executor = TomcatServerGBean.executors.get("DefaultThreadPool");
if (executor == null) {
log.warn("No executor found in service with name: DefaultThreadPool");
}
}
if (executor != null)
{
log.info("executor:"+executor.getName()+" found, set it to connector:"+this.getName() );
try {
IntrospectionUtils.callMethod1(this.connector.getProtocolHandler(),
"setExecutor",