Merge remote-tracking branch 'origin/jetty-11.0.x' into jetty-12.0.x
This commit is contained in:
commit
c4200aee9f
|
@ -128,13 +128,6 @@
|
|||
<groupId>org.infinispan</groupId>
|
||||
<artifactId>infinispan-client-hotrod</artifactId>
|
||||
<scope>test</scope>
|
||||
<exclusions>
|
||||
<!-- this is depending on an old log4j version which have this issue https://issues.apache.org/jira/browse/LOG4J2-3241 -->
|
||||
<exclusion>
|
||||
<groupId>org.apache.logging.log4j</groupId>
|
||||
<artifactId>log4j-core</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.infinispan</groupId>
|
||||
|
|
|
@ -63,10 +63,20 @@ public class HotSwapHandler extends AbstractHandlerContainer
|
|||
try
|
||||
{
|
||||
Server server = getServer();
|
||||
if (handler == _handler)
|
||||
return;
|
||||
|
||||
Handler oldHandler = _handler;
|
||||
if (handler != null)
|
||||
{
|
||||
handler.setServer(server);
|
||||
updateBean(_handler, handler, true);
|
||||
addBean(handler, true);
|
||||
if (oldHandler != null && oldHandler.isStarted())
|
||||
handler.start();
|
||||
}
|
||||
_handler = handler;
|
||||
if (oldHandler != null)
|
||||
removeBean(oldHandler);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue