aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-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 9ac22d45..3122e715 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 27bfcf36..0a1b83d2 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();
}