}
@Override
protected void noMessageReceived(Object invoker, Session session) {
}
};
RepeatOperationsInterceptor interceptor = new RepeatOperationsInterceptor();
interceptor.setRepeatOperations(template);
container.setAdviceChain(new Advice[] {interceptor});
container.setConnectionFactory(connectionFactory);
container.setDestinationName("queue");
container.afterPropertiesSet();
return container;