improve lifecycle of RedisMessageListenerContainer

DATAREDIS-81
This commit is contained in:
Costin Leau
2012-03-29 17:47:38 +03:00
parent 2cb4585565
commit 902104e458
2 changed files with 1 additions and 2 deletions

View File

@@ -72,6 +72,7 @@ public class PubSubTests<T> {
container.setBeanName("container");
container.addMessageListener(adapter, Arrays.asList(new ChannelTopic(CHANNEL)));
container.afterPropertiesSet();
container.start();
Thread.sleep(1000);
}