diff options
author | 2016-08-08 00:05:21 +0300 | |
---|---|---|
committer | 2016-08-08 00:05:21 +0300 | |
commit | 351a61da81baccae4392fc65bb09e5e19860eaa5 (patch) | |
tree | abf627aa95e02f80bc90c54a70660ab0a61587bc /juick-ws/src/main/java/com/juick/ws/components/XMPPComponent.java | |
parent | 589901b03688e073eb85b5b51a58cec3c8d5d5e9 (diff) |
juick-ws: async components
Diffstat (limited to 'juick-ws/src/main/java/com/juick/ws/components/XMPPComponent.java')
-rw-r--r-- | juick-ws/src/main/java/com/juick/ws/components/XMPPComponent.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/juick-ws/src/main/java/com/juick/ws/components/XMPPComponent.java b/juick-ws/src/main/java/com/juick/ws/components/XMPPComponent.java index 327b8e71..c0216eb2 100644 --- a/juick-ws/src/main/java/com/juick/ws/components/XMPPComponent.java +++ b/juick-ws/src/main/java/com/juick/ws/components/XMPPComponent.java @@ -15,6 +15,7 @@ import org.springframework.beans.factory.DisposableBean; import org.springframework.beans.factory.InitializingBean; import org.springframework.core.env.Environment; import org.springframework.jdbc.core.JdbcTemplate; +import org.springframework.scheduling.annotation.Async; import org.springframework.stereotype.Component; import org.xmlpull.v1.XmlPullParserException; @@ -177,6 +178,7 @@ public class XMPPComponent implements InitializingBean, DisposableBean, Stream.S } } + @Async @Override public void afterPropertiesSet() { |