GitHub user ptrdom added a comment to the discussion: Configuring separate DB connection for query plugin
Runtime plugin configuration introduced changes that made the connection factory configuration work differently than it does in Akka. Main component is the `use-connection-factory` setting: https://github.com/apache/pekko-persistence-r2dbc/blob/b58de9f602f0c52e8b7ff2606832ad85aaf0ea06/core/src/main/resources/reference.conf#L225 By default each plugin points to the same setting, thus the connection factory is reused by all of the plugins. To have a separate connection factory for query plugin only, you would need to define a new connection factory key and then set the query plugin to use it, something like: ``` pekko.persistence.r2dbc.query.connection-factory = ${pekko.persistence.r2dbc.connection-factory} pekko.persistence.r2dbc.query.connection-factory.database= "some-different-database" pekko.persistence.r2dbc.query.use-connection-factory = "pekko.persistence.r2dbc.query.connection-factory" ``` GitHub link: https://github.com/apache/pekko-persistence-r2dbc/discussions/301#discussioncomment-15640466 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
