This is an automated email from the ASF dual-hosted git repository. rcordier pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/james-project.git
commit d55ecb03b23db8d290cffeafb8e0b2b7291cd7e0 Author: Rene Cordier <rcord...@linagora.com> AuthorDate: Tue Feb 25 17:18:44 2025 +0700 [Postgres] Should not bind JMAPEventBusModule when using memory event bus --- .../src/main/java/org/apache/james/PostgresJamesServerMain.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server/apps/postgres-app/src/main/java/org/apache/james/PostgresJamesServerMain.java b/server/apps/postgres-app/src/main/java/org/apache/james/PostgresJamesServerMain.java index d3c707a1d3..772d321f50 100644 --- a/server/apps/postgres-app/src/main/java/org/apache/james/PostgresJamesServerMain.java +++ b/server/apps/postgres-app/src/main/java/org/apache/james/PostgresJamesServerMain.java @@ -19,6 +19,8 @@ package org.apache.james; +import static org.apache.james.PostgresJamesConfiguration.EventBusImpl.RABBITMQ; + import java.util.List; import java.util.Set; import java.util.function.Function; @@ -250,7 +252,10 @@ public class PostgresJamesServerMain implements JamesServerMain { private static Module chooseJmapModules(PostgresJamesConfiguration configuration) { if (configuration.isJmapEnabled()) { - return Modules.combine(new JMAPEventBusModule(), new JMAPListenerModule()); + if (configuration.eventBusImpl() == RABBITMQ) { + return Modules.combine(new JMAPEventBusModule(), new JMAPListenerModule()); + } + return new JMAPListenerModule(); } return binder -> { }; --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org For additional commands, e-mail: notifications-h...@james.apache.org