This is an automated email from the ASF dual-hosted git repository. btellier pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/james-project.git
The following commit(s) were added to refs/heads/master by this push: new 6139ad9 JAMES-2683 SimpleConnectionPool should be a guice singleton 6139ad9 is described below commit 6139ad91be85ee8a65b486fb10dfa1a45f123d6c Author: Benoit Tellier <btell...@linagora.com> AuthorDate: Fri Jun 4 10:32:53 2021 +0700 JAMES-2683 SimpleConnectionPool should be a guice singleton Not doing so results in opening too many connections... - Two connections were opened for the Health checks - One connection for ReactorRabbitMQChannelPool - One connection for ReceiverProvider --- .../java/org/apache/james/modules/queue/rabbitmq/RabbitMQModule.java | 1 + 1 file changed, 1 insertion(+) diff --git a/server/container/guice/queue/rabbitmq/src/main/java/org/apache/james/modules/queue/rabbitmq/RabbitMQModule.java b/server/container/guice/queue/rabbitmq/src/main/java/org/apache/james/modules/queue/rabbitmq/RabbitMQModule.java index d26c1b3..67c765d 100644 --- a/server/container/guice/queue/rabbitmq/src/main/java/org/apache/james/modules/queue/rabbitmq/RabbitMQModule.java +++ b/server/container/guice/queue/rabbitmq/src/main/java/org/apache/james/modules/queue/rabbitmq/RabbitMQModule.java @@ -83,6 +83,7 @@ public class RabbitMQModule extends AbstractModule { bind(CassandraMailQueueBrowser.class).in(Scopes.SINGLETON); bind(CassandraMailQueueMailDelete.class).in(Scopes.SINGLETON); bind(CassandraMailQueueMailStore.class).in(Scopes.SINGLETON); + bind(SimpleConnectionPool.class).in(Scopes.SINGLETON); Multibinder<CassandraModule> cassandraModuleBinder = Multibinder.newSetBinder(binder(), CassandraModule.class); cassandraModuleBinder.addBinding().toInstance(CassandraMailQueueViewModule.MODULE); --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org For additional commands, e-mail: notifications-h...@james.apache.org