From e26da7a0a73793cf595e579b73d647ede2d21d5c Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 8 Aug 2016 11:24:37 +0300 Subject: juick-ws: fix push component --- juick-ws/src/main/java/com/juick/ws/components/PushComponent.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'juick-ws/src/main/java/com/juick') 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); } -- cgit v1.2.3