From 754976f8c11b8bffd2f8c2bc2564dbb46d2c8f3e Mon Sep 17 00:00:00 2001 From: Clebert Suconic Date: Tue, 9 Aug 2016 11:42:26 -0400 Subject: [PATCH] ARTEMIS-601 Fixing use of spaces on the server and reloading --- .../activemq/artemis/core/server/impl/ActiveMQServerImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ActiveMQServerImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ActiveMQServerImpl.java index 058b93801e..cc9ef1d7cd 100644 --- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ActiveMQServerImpl.java +++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ActiveMQServerImpl.java @@ -2358,7 +2358,7 @@ public class ActiveMQServerImpl implements ActiveMQServer { } - private final class ConfigurationFileReloader extends Thread { + private final class ConfigurationFileReloader implements Runnable { long lastModified; boolean first = true; ActiveMQServer server; @@ -2371,7 +2371,7 @@ public class ActiveMQServerImpl implements ActiveMQServer { public void run() { try { URL url = server.getConfiguration().getConfigurationUrl(); - long currentLastModified = new File(url.toURI()).lastModified(); + long currentLastModified = new File(url.getPath()).lastModified(); if (first) { first = false; lastModified = currentLastModified;