Use XML created Server
This commit is contained in:
parent
4af68620ae
commit
b8334b6786
|
@ -245,13 +245,12 @@ public class JettyEmbedder extends AbstractLifeCycle
|
|||
*/
|
||||
private void configure() throws Exception
|
||||
{
|
||||
|
||||
if (server == null)
|
||||
server = new Server();
|
||||
|
||||
/* Configure the server */
|
||||
//apply any configs from jetty.xml files first
|
||||
Server tmp = ServerSupport.applyXmlConfigurations(server, jettyXmlFiles, jettyProperties);
|
||||
// apply any configs from jetty.xml files first
|
||||
server = ServerSupport.applyXmlConfigurations(server, jettyXmlFiles, jettyProperties);
|
||||
|
||||
server.setStopAtShutdown(stopAtShutdown);
|
||||
|
||||
|
|
|
@ -250,7 +250,7 @@ public class JettyEmbedder extends ContainerLifeCycle
|
|||
|
||||
/* Configure the server */
|
||||
//apply any configs from jetty.xml files first
|
||||
Server tmp = ServerSupport.applyXmlConfigurations(server, jettyXmlFiles, jettyProperties);
|
||||
server = ServerSupport.applyXmlConfigurations(server, jettyXmlFiles, jettyProperties);
|
||||
|
||||
server.setStopAtShutdown(stopAtShutdown);
|
||||
|
||||
|
|
Loading…
Reference in New Issue