From 7270411d55c154e42c942caeaf4d4b942d72dea2 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 8 Nov 2016 16:36:52 +0300 Subject: ws: fix injection --- juick-ws/src/main/java/com/juick/ws/StatusController.java | 2 ++ juick-ws/src/main/java/com/juick/ws/XMPPConnection.java | 1 + 2 files changed, 3 insertions(+) (limited to 'juick-ws/src/main') diff --git a/juick-ws/src/main/java/com/juick/ws/StatusController.java b/juick-ws/src/main/java/com/juick/ws/StatusController.java index 216089b4..f7e80106 100644 --- a/juick-ws/src/main/java/com/juick/ws/StatusController.java +++ b/juick-ws/src/main/java/com/juick/ws/StatusController.java @@ -16,6 +16,8 @@ import javax.inject.Inject; public class StatusController { @Inject WebsocketComponent wsHandler; + @Inject + XMPPConnection ws; @RequestMapping(method = RequestMethod.GET, headers = "Connection!=upgrade", value = "/") public ModelAndView status() { diff --git a/juick-ws/src/main/java/com/juick/ws/XMPPConnection.java b/juick-ws/src/main/java/com/juick/ws/XMPPConnection.java index caeb5b21..0f2f75f6 100644 --- a/juick-ws/src/main/java/com/juick/ws/XMPPConnection.java +++ b/juick-ws/src/main/java/com/juick/ws/XMPPConnection.java @@ -36,6 +36,7 @@ public class XMPPConnection implements Stream.StreamListener, Message.MessageLis Stream xmpp; String xmppPassword; MessageSerializer ms; + @Inject WebsocketComponent wsHandler; @Inject -- cgit v1.2.3