Commit be1c279b authored by Dave Syer's avatar Dave Syer

Add connector to service before calling customizers

parent 52e0193d
...@@ -130,8 +130,8 @@ public class TomcatEmbeddedServletContainerFactory extends ...@@ -130,8 +130,8 @@ public class TomcatEmbeddedServletContainerFactory extends
: createTempDir("tomcat")); : createTempDir("tomcat"));
tomcat.setBaseDir(baseDir.getAbsolutePath()); tomcat.setBaseDir(baseDir.getAbsolutePath());
connector = new Connector(this.protocol); connector = new Connector(this.protocol);
customizeConnector(connector);
tomcat.getService().addConnector(connector); tomcat.getService().addConnector(connector);
customizeConnector(connector);
tomcat.setConnector(connector); tomcat.setConnector(connector);
tomcat.getHost().setAutoDeploy(false); tomcat.getHost().setAutoDeploy(false);
tomcat.getEngine().setBackgroundProcessorDelay(-1); tomcat.getEngine().setBackgroundProcessorDelay(-1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment