How to integrate database-connectivity and virtual hosting - tomcat

After Installation tomcat, how to integrate database-connectivity and virtual hosting;.
Please guide me ,
tomcat 8
redhat 7

i am successfully installed apache on server
How to get more brief about apache Tomcat.

thanks in Advance
Linux lover <3. :heart: