public void start() throws Exception {
if (org.apache.tomcat.util.Constants.ENABLE_MODELER) {
if( this.domain != null ) {
try {
tpOname=new ObjectName
(domain + ":" + "type=ThreadPool,name=" + getJmxName());
Registry.getRegistry(null, null)
.registerComponent(endpoint, tpOname, null );
} catch (Exception e) {
CoyoteLogger.HTTP_APR_LOGGER.errorRegisteringPool(e);
}
rgOname=new ObjectName
(domain + ":type=GlobalRequestProcessor,name=" + getJmxName());
Registry.getRegistry(null, null).registerComponent
( cHandler.global, rgOname, null );
}
}
try {
endpoint.start();
} catch (Exception ex) {
CoyoteLogger.HTTP_APR_LOGGER.errorStartingEndpoint(ex);
throw ex;
}
CoyoteLogger.HTTP_APR_LOGGER.startHttpConnector(getName());
}