Playframework: How to add new database connections post server startup? -


how add new database connection ebean , pool support after playframework 2.5 web app initialized? playframework starts default db connection , while running need connect few other databases.

i can use ebean.register(ebeanserver server, boolean defaultserver) register new datasource , use ebean.getserver("dbconfigname"). how specify hikaricp pool configuration database? play use hikaricp defaults play.db.prototype.hikaricp?


Comments

Popular posts from this blog

c# SetCompatibleTextRenderingDefault must be called before the first -

c++ - Fill runtime data at compile time with templates -

C#.NET Oracle.ManagedDataAccess ConfigSchema.xsd -