From a725625b958eb13bea7ff2337dde519deff21845 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 1 Feb 2016 20:32:14 +0300 Subject: fix wns conf --- src/main/java/com/juick/PushComponent.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/juick/PushComponent.java b/src/main/java/com/juick/PushComponent.java index bc2f9fb4..aab56778 100644 --- a/src/main/java/com/juick/PushComponent.java +++ b/src/main/java/com/juick/PushComponent.java @@ -92,14 +92,14 @@ public class PushComponent implements ServletContextListener, Stream.StreamListe conf.load(sce.getServletContext().getResourceAsStream("WEB-INF/juick.conf")); LogManager.getLogManager().readConfiguration( sce.getServletContext().getResourceAsStream("WEB-INF/logging.properties")); + wns_application_sip = conf.getProperty("wns_application_sip", ""); + wns_client_secret = conf.getProperty("wns_client_secret", ""); GCMSender = new Sender(conf.getProperty("gcm_key")); setupSql(conf.getProperty("mysql_host"), conf.getProperty("mysql_username"), conf.getProperty("mysql_password", ""), conf.getProperty("mysql_database", "")); setupXmppComponent(new JID("", conf.getProperty("push_jid"), ""), conf.getProperty("xmpp_host", "localhost"), Integer.parseInt(conf.getProperty("xmpp_port", "5347")), conf.getProperty("push_xmpp_password", "")); - wns_application_sip = conf.getProperty("wns_application_sip", ""); - wns_client_secret = conf.getProperty("wns_client_secret", ""); } catch (IOException e) { logger.log(Level.SEVERE, e.getMessage(), e); } -- cgit v1.2.3