diff options
author | Vitaly Takmazov | 2016-06-30 09:41:02 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-06-30 09:41:02 +0300 |
commit | 13642efd8bd1d70264392c1ee7b87f9b0c979066 (patch) | |
tree | 1cca06d8297e4befd65153114e1a27fcb4bd4a40 /src/main/java | |
parent | d131a99cb1641a4ea0c61b4caaee50a50c1ffd42 (diff) |
xmpp fix, next
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/com/juick/ws/configuration/WebsocketConfiguration.java | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/main/java/com/juick/ws/configuration/WebsocketConfiguration.java b/src/main/java/com/juick/ws/configuration/WebsocketConfiguration.java index 0a1b83d2..ecf2de46 100644 --- a/src/main/java/com/juick/ws/configuration/WebsocketConfiguration.java +++ b/src/main/java/com/juick/ws/configuration/WebsocketConfiguration.java @@ -1,8 +1,6 @@ package com.juick.ws.configuration; import com.juick.ws.WebsocketComponent; -import com.juick.ws.XMPPConnection; -import org.springframework.beans.factory.DisposableBean; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; @@ -18,8 +16,6 @@ import org.springframework.web.socket.config.annotation.WebSocketConfigurer; import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry; import javax.inject.Inject; -import java.util.concurrent.ExecutorService; -import java.util.concurrent.Executors; /** * Created by vitalyster on 28.06.2016. @@ -44,21 +40,8 @@ public class WebsocketConfiguration extends WebMvcConfigurerAdapter implements W dataSource.setUrl(env.getProperty("datasource_url")); return new JdbcTemplate(dataSource); } - @Bean - DestroyBean destroyBean() { - return new DestroyBean(); - } @Override public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) { registry.addHandler(wsHandler(), "/**"); } - class DestroyBean implements DisposableBean { - - @Inject - ExecutorService xmppThreadService; - @Override - public void destroy() throws Exception { - xmppThreadService.shutdownNow(); - } - } } |