diff options
author | Vitaly Takmazov | 2016-02-01 19:03:44 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-02-01 19:03:44 +0300 |
commit | 3304f60f3388b5eea587f3772058f945803d3d8d (patch) | |
tree | e1e06a6cd8cada809e7d4e17d18897ce48daeece /src/main/java/com/juick/xmpp/s2s/XMPPComponent.java | |
parent | cdfb7ce31855c0c27c6672f9dc36b1e8a0941ac0 (diff) |
fix s2s router
Diffstat (limited to 'src/main/java/com/juick/xmpp/s2s/XMPPComponent.java')
-rw-r--r-- | src/main/java/com/juick/xmpp/s2s/XMPPComponent.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/com/juick/xmpp/s2s/XMPPComponent.java b/src/main/java/com/juick/xmpp/s2s/XMPPComponent.java index bb5f5ef7..95641f5e 100644 --- a/src/main/java/com/juick/xmpp/s2s/XMPPComponent.java +++ b/src/main/java/com/juick/xmpp/s2s/XMPPComponent.java @@ -6,7 +6,6 @@ import com.juick.xmpp.extensions.JuickMessage; import javax.servlet.ServletContextEvent; import javax.servlet.ServletContextListener; -import java.io.FileInputStream; import java.io.IOException; import java.sql.Driver; import java.sql.DriverManager; @@ -157,7 +156,7 @@ public class XMPPComponent implements ServletContextListener { executorService.submit(() -> { Properties conf = new Properties(); try { - conf.load(new FileInputStream("/etc/juick/s2s.conf")); + conf.load(sce.getServletContext().getResourceAsStream("WEB-INF/s2s.conf")); HOSTNAME = conf.getProperty("hostname"); COMPONENTNAME = conf.getProperty("componentname"); STATSFILE = conf.getProperty("statsfile"); |