I'm building a web app with JavaEE framework. I'm looking for how to load a connection pool to a database dynamically via a configuration file like properties file or xml file or whatever.

I'm looking for this way because my web app needs a pool connection but I dont know in advance which application's server will be used to launch my web app. It's why I need to find a standard way to load a connection pool for all kind of JavaEE server.

I dont know if it's possible or not at all.. but if you may help me, it'll be very nice for my project.

Thank you in advance.