aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-02-01 20:32:14 +0300
committerGravatar Vitaly Takmazov2016-02-01 20:32:14 +0300
commita725625b958eb13bea7ff2337dde519deff21845 (patch)
treec1f0920eef9ed786e5ea71458de65d9773fd356b /src
parent6cdc01aee58cddbfccefbf5def429d14367f6205 (diff)
fix wns conf
Diffstat (limited to 'src')
-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);
}