Following article, shows how to use Apache TomEE in conjunction with Apache Maven.
Apache TomEE is a lightweight JEE Web Profile enterprise server wich allows you to use CDI JSF EJB etc... within a simple WAR file.
The blog walks you through a small hello world project which touches all three layers of a typical enterprise application.
On to the article