2 of 2 people found this helpful
it is a library and you can configure it programmatically or by some framework that uses it.
But than again, why would you need to do that?
WildFly comes out the box with support for database connection pooling you just need to configure it.
look at the datasources subsystem.
In recent versions wildfly also ships with new data source pooling system agroal.