Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Adam Piekarski
Added: May 23, 2018 8:30 AM
Views: 13
  1. Class.forName("org.mariadb.jdbc.Driver");
  2. this.datasource = new MariaDbPoolDataSource(SettingsFacade.get().getValue("jdbc"));
  3. this.datasource.setPassword(SettingsFacade.get().getValue("dbpassword"));
  4. this.datasource.setUser(SettingsFacade.get().getValue("dbuser"));
  5. this.datasource.setMinPoolSize(20);
  6. this.datasource.setMaxPoolSize(100);