chibenwa commented on code in PR #2190: URL: https://github.com/apache/james-project/pull/2190#discussion_r1567202422
########## server/container/guice/postgres-common/src/main/java/org/apache/james/modules/data/PostgresCommonModule.java: ########## @@ -76,14 +76,14 @@ PostgresConfiguration provideConfiguration(PropertiesProvider propertiesProvider @Singleton JamesPostgresConnectionFactory provideJamesPostgresConnectionFactory(PostgresConfiguration postgresConfiguration, ConnectionFactory connectionFactory, - @Named(JamesPostgresConnectionFactory.NON_RLS_INJECT) JamesPostgresConnectionFactory singlePostgresConnectionFactory) { + @Named(JamesPostgresConnectionFactory.NON_RLS_INJECT) JamesPostgresConnectionFactory jamesPostgresConnectionFactory) { if (postgresConfiguration.rowLevelSecurityEnabled()) { LOGGER.info("PostgreSQL row level security enabled"); - LOGGER.info("Implementation for PostgreSQL connection factory: {}", DomainImplPostgresConnectionFactory.class.getName()); - return new DomainImplPostgresConnectionFactory(connectionFactory); + LOGGER.info("Implementation for PostgreSQL connection factory: {}", PoolBackedPostgresConnectionFactory.class.getName()); + return new PoolBackedPostgresConnectionFactory(true, connectionFactory); } - LOGGER.info("Implementation for PostgreSQL connection factory: {}", SinglePostgresConnectionFactory.class.getName()); - return singlePostgresConnectionFactory; + LOGGER.info("Implementation for PostgreSQL connection factory: {}", PoolBackedPostgresConnectionFactory.class.getName()); + return new PoolBackedPostgresConnectionFactory(false, connectionFactory); Review Comment: As far as I can tell, comment is not handled. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org For additional commands, e-mail: notifications-h...@james.apache.org