From 7dac07673b54e5c53a1e964a4c2f189289e4ffb2 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 10 Nov 2016 17:18:50 +0300 Subject: xmpp: using right component name now --- juick-xmpp/src/main/java/com/juick/components/XMPPServer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'juick-xmpp') diff --git a/juick-xmpp/src/main/java/com/juick/components/XMPPServer.java b/juick-xmpp/src/main/java/com/juick/components/XMPPServer.java index 96023873..e533ebaf 100644 --- a/juick-xmpp/src/main/java/com/juick/components/XMPPServer.java +++ b/juick-xmpp/src/main/java/com/juick/components/XMPPServer.java @@ -76,7 +76,7 @@ public class XMPPServer implements DisposableBean, Stream.StreamListener, service.submit(() -> { try { Socket routerSocket = new Socket("localhost", componentPort); - router = new StreamComponent(new JID("s2s"), routerSocket.getInputStream(), routerSocket.getOutputStream(), env.getProperty("xmpp_password")); + router = new StreamComponent(new JID(componentName), routerSocket.getInputStream(), routerSocket.getOutputStream(), env.getProperty("xmpp_password")); router.addChildParser(new JuickMessage()); router.addListener((Stream.StreamListener) this); router.addListener((Message.MessageListener) this); -- cgit v1.2.3