Pooled connections are part of the
J2EE standard and documentation can be found in any good book on J2EE. The exact configuration details depend on what server you are using.
TomEE is supposed to be an EJB container. So if it's properly compliant, the EJBs would
have to have those mechanisms as part of the EJB implementation itself, not that basic
Tomcat didn't support them anyway.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.