aboutsummaryrefslogtreecommitdiff
path: root/juick-ws/src
diff options
context:
space:
mode:
Diffstat (limited to 'juick-ws/src')
-rw-r--r--juick-ws/src/main/java/com/juick/ws/StatusController.java2
-rw-r--r--juick-ws/src/main/java/com/juick/ws/XMPPConnection.java1
2 files changed, 3 insertions, 0 deletions
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