You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 21, 2024. It is now read-only.
Hello
When I use multirabbit library I want to set errorHandler to SimpleRabbitListenerContainerFactory, but, as I can see in sources (MultiRabbitAutoConfiguration), there always creating SimpleRabbitListenerContainerFactory with ConnectionFactory and I can not modify that containerFactory in any way:
private SimpleRabbitListenerContainerFactory newContainerFactory(final ConnectionFactory connectionFactory) {
final SimpleRabbitListenerContainerFactory containerFactory = new SimpleRabbitListenerContainerFactory();
containerFactory.setConnectionFactory(connectionFactory);
return containerFactory;
}
Is it possible add some customizers or something like this, where I will be able to modify containerFactory ?
Other proposition is create an interface that will create RabbitListenerContainerFactory, input - ConnectionFactory and name from properties. And allow users to provide own implementation.
Example:
public interface RabbitListenerContainerFactoryCreator {
RabbitListenerContainerFactory<?> createRabbitListenerContainerFactory(ConnectionFactory connectionFactory, String key);
}
By default, if no user implementation, use old method - create SimpleRabbitListenerContainerFactory with only ConnectionFactory