I just checked the mysql driver. It does not support a DataSourceFactory
itself. So you will need the adapter from pax jdbc.
You can simply check how pax-jdbc-config does it.
See
Thank you, Christian! This was very helpful...
If I could ask something else: are you aware of any example programmatic
creation of the data source you can point me to? We have our own library of
credential resolution, and I'd like, instead of providing the 'user' and
'password' properties,
Pax-jdbc 0.10 changes the way the pooling is implemented. It is documented
here:
https://ops4j1.jira.com/wiki/display/PAXJDBC/Pooling+and+XA+support+in+1.0.0
The idea was to release this as 1.0.0. This is why the doc already
references this version.
Christian
2017-01-05 20:54 GMT+01:00 GOGLE