[CONJ-806] Cannot find symbol: MariaDbPoolDataSource Created: 2020-07-07 Updated: 2021-05-17 Resolved: 2021-05-17 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | pooling |
| Affects Version/s: | 2.6.1 |
| Fix Version/s: | N/A |
| Type: | Task | Priority: | Major |
| Reporter: | Richard | Assignee: | Diego Dupin |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Centos 6 |
||
| Description |
|
DriverManager.getConnection works perfectly. Way better performance than old mysql driver But I am struggling with your pool code example: https://mariadb.com/kb/en/pool-datasource-implementation/ MariaDbPoolDataSource pool = new MariaDbPoolDataSource("jdbc:mariadb://server/db?user=myUser&maxPoolSize=10"); try (Connection connection = pool.getConnection()) { } I have these imports: I compile as normal, but get this error: javac select_con_mdb_ds_pool.java I'm probably doing something stupid - any help would be appreciated! |
| Comments |
| Comment by Diego Dupin [ 2020-11-17 ] | |
|
You have to import MariaDbPoolDataSource:
sorry for late answer. |