Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hikari configuration problem with multiple datasources #622

Closed
lucaguada opened this issue Feb 1, 2017 · 1 comment
Closed

Hikari configuration problem with multiple datasources #622

lucaguada opened this issue Feb 1, 2017 · 1 comment
Labels
Milestone

Comments

@lucaguada
Copy link

lucaguada commented Feb 1, 2017

With the following configuration:

db.spock.url = "jdbc:mysql://localhost:3306/spock?createDatabaseIfNotExist=true&useSSL=false&serverTimezone=Europe/Rome"
db.spock.user = "root"
db.spock.password = "password"
db.spock.cachePrepStmts = true

hikari.spock.autoCommit = true
hikari.spock.maximumPoolSize = 100

db.vulcan.url = "jdbc:mysql://localhost:3306/vulcan?createDatabaseIfNotExist=true&useSSL=false&serverTimezone=Europe/Rome"
db.vulcan.user = "root"
db.vulcan.password = "password"
db.vulcan.cachePrepStmts = true

hikari.vulcan.autoCommit = true
hikari.vulcan.maximumPoolSize = 100

Jooby at runtime complains about 'vulcan.autoCommit'

INFO: An exception was caught and reported. Message: java.lang.RuntimeException: Property vulcan.autoCommit does not exist on target class com.zaxxer.hikari.HikariConfig java.lang.RuntimeException: Property vulcan.autoCommit does not exist on target class com.zaxxer.hikari.HikariConfig

by just using the following code:

{ ...use(new Flywaydb("flyway.spock")); ...use(new Flywaydb("flyway.vulcan")); ...use(new Jdbc("db.spock")); ...use(new Jdbc("db.vulcan")); }

@jknack jknack added this to the 1.0.3 milestone Feb 2, 2017
@jknack jknack added the bug label Feb 2, 2017
@jknack jknack modified the milestones: 1.1.0, 1.0.3 Feb 8, 2017
@jknack
Copy link
Member

jknack commented Feb 14, 2017

Done in #640

@jknack jknack closed this as completed Feb 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants