diff options
author | Vitaly Takmazov | 2016-08-08 11:24:37 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-08-08 11:24:37 +0300 |
commit | e26da7a0a73793cf595e579b73d647ede2d21d5c (patch) | |
tree | ce5d9a6bc0bf8c7b7af4e1f1afdb2b68e7c3f161 /juick-ws/src | |
parent | 32111158ba5fd2481511cc2b5f09f921a1463bc1 (diff) |
juick-ws: fix push component
Diffstat (limited to 'juick-ws/src')
-rw-r--r-- | juick-ws/src/main/java/com/juick/ws/components/PushComponent.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/juick-ws/src/main/java/com/juick/ws/components/PushComponent.java b/juick-ws/src/main/java/com/juick/ws/components/PushComponent.java index fb26b935..7be2f797 100644 --- a/juick-ws/src/main/java/com/juick/ws/components/PushComponent.java +++ b/juick-ws/src/main/java/com/juick/ws/components/PushComponent.java @@ -47,7 +47,6 @@ import org.apache.http.util.EntityUtils; import org.apache.http.util.TextUtils; import org.json.JSONObject; import org.springframework.beans.factory.DisposableBean; -import org.springframework.beans.factory.InitializingBean; import org.springframework.core.env.Environment; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.datasource.DriverManagerDataSource; @@ -85,7 +84,7 @@ public class PushComponent implements JuickComponent, DisposableBean, Stream.Str logger.info("component initialized"); wns_application_sip = env.getProperty("wns_application_sip", ""); wns_client_secret = env.getProperty("wns_client_secret", ""); - GCMSender = new Sender(env.getProperty("gcm_key")); + GCMSender = new Sender(env.getProperty("gcm_key", "")); setupSql(env.getProperty("datasource_driver", "com.mysql.jdbc.Driver"), env.getProperty("datasource_url", "")); setupXmppComponent(new JID("", env.getProperty("push_jid"), ""), env.getProperty("xmpp_host", "localhost"), @@ -117,7 +116,6 @@ public class PushComponent implements JuickComponent, DisposableBean, Stream.Str xmpp.addChildParser(new JuickMessage()); xmpp.addListener((Stream.StreamListener) this); xmpp.addListener((MessageListener) this); - xmpp.startParsing(); } catch (IOException e) { logger.log(Level.SEVERE, e.getMessage(), e); } |