Apache TomEE usage
If you have already used Apache Tomcat, you can consider yourself ready to use Apache TomEE. It is based on the Tomcat's core and implements the Java EE specs.
Getting ready
First, you need to download it to your environment. At the time of writing, TomEE has no Java EE 8 compatible version (actually, there is only GlassFish 5). However, the tasks covered here shouldn't change in future versions as they are not attached to the Java EE specs.
To download it, just visit http://tomee.apache.org/downloads.html. This recipe in based on version 7.0.2 Plume.
Wherever possible, we will focus on doing tasks using the configuration files.
How to do it...
Refer to the following detailed tasks.
Deploying EAR, WAR, and JAR files
For EARand WAR files, the deployment folder is:
$TOMEE_HOME/webapps
For JAR files, the folder is:
$TOMEE_HOME/lib
Creating datasources and a connection pool
To create a datasource and a connection pool to help you use databases in your project, edit the $TOMEE_HOME/conf...