aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/com/juick/ws/XMPPConnection.java3
-rw-r--r--src/main/java/com/juick/ws/configuration/WebsocketConfiguration.java4
2 files changed, 1 insertions, 6 deletions
diff --git a/src/main/java/com/juick/ws/XMPPConnection.java b/src/main/java/com/juick/ws/XMPPConnection.java
index 9ac22d459..3122e715f 100644
--- a/src/main/java/com/juick/ws/XMPPConnection.java
+++ b/src/main/java/com/juick/ws/XMPPConnection.java
@@ -38,8 +38,7 @@ public class XMPPConnection implements Runnable, Stream.StreamListener, Message.
MessageSerializer ms;
@Inject
WebsocketComponent ws;
- @Inject
- ExecutorService xmppThreadService;
+ ExecutorService xmppThreadService = Executors.newSingleThreadExecutor();
@Inject
public XMPPConnection(Environment env) {
diff --git a/src/main/java/com/juick/ws/configuration/WebsocketConfiguration.java b/src/main/java/com/juick/ws/configuration/WebsocketConfiguration.java
index 27bfcf369..0a1b83d2c 100644
--- a/src/main/java/com/juick/ws/configuration/WebsocketConfiguration.java
+++ b/src/main/java/com/juick/ws/configuration/WebsocketConfiguration.java
@@ -45,10 +45,6 @@ public class WebsocketConfiguration extends WebMvcConfigurerAdapter implements W
return new JdbcTemplate(dataSource);
}
@Bean
- ExecutorService xmppThreadService() {
- return Executors.newSingleThreadExecutor();
- }
- @Bean
DestroyBean destroyBean() {
return new DestroyBean();
}