lets program a JavaEE hello world app!
first install maven and create your pom.xml. pull down dependencies Hibernate as your JPA provider, then Weld as your CDI provider. Now you'll want to familiarize yourself with the JSF EL expression language. Create your hello world servlet by overriding the doGet method. We're ready to deploy, we'll need a servlet container. Choose the container you're most familiar with, either JBoss, Glassfish, or Tomcat. Create your deployment profile and generate your WAR file. Deposit the file into the deployments directory, be sure to configure JNDI entry for a JDBC datasource for it.