Hibernate Multitenancy

I need to implement multitenancy in hibernate. I currently support multiple database platforms. I have a new need to support multitenancy dynamically. When I need to add a new tenant, I cannot stop the server and restart. The new tenant must br created and configured on the fly. I want to use “schema” multitenancy.

I have read this post and thought it would work for me:

In this solution, can anyone tell me what component is pooling the connections and where that is configured?