aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/com/juick/PushComponent.java4
1 files 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);
}