You didn't mention the exact version of your JBoss EAP so I assume it's latest EAP 6.4.x (I usually recommend to use the latest version)
It is configured in the <datasource> definition in standalone.xml
You can find the detailed doc here:
Find example datasource definition here:
Btw, as you didn't share your source code I'm not sure how you obtain database connections, but obviously you need to use the JBoss container managed datasource to connect so that these configs can take effect.
I have used JBoss 6.4.0 and its datasource to connect a database.
I just could not find where the configuration information was.
There was the information at the link.
I sorted out.
Thanks for feedback.
Feel free to mark this as resolved please if you have sorted it out