This workspace consists of Java EE 7 Samples. They are categorized in different directories, one for each JSR.
I don't plan to write any formal documentation, read the code. The Java EE 7 Essentials book refer to some of these samples and provide an explanation. However if you are interested in adding javadocs, send a pull request.
git clone https://github.com/wildfly/wildfly-maven-plugincd wildfly-maven-pluginmvn install
mvn package -DskipTestsmvn wildfly:start wildfly:deploy-only test -P wildfly
mvn package -DskipTestsmvn embedded-glassfish:deploy test -P glassfish
- Open the sample in NetBeans 7.4
- Click on "Run" (sample is built and deployed on GlassFish 4, main page shows up). NetBeans do not support WildFly yet.
- Main page provides feature name, how to run the sample, and displays the output
Samples can be deployed and run on WildFly and GlassFish 4.
Make sure to edit glassfish.home or wildfly.home property value in the top-level pom.xml to point to your local GlassFish or Wildfly directory respectively. This is achieved using Maven profiles. Include -P wildfly on mvn CLI to run the samples on WildFly and -P glassfish fo GlassFish.
Only one profile can be active at a given time otherwise there will be port conflicts.
- In one terminal,
mvn cargo:runat the top-level directory to start container - In the sample directory
mvn package cargo:deployto deploy for the first timemvn package cargo:redeployto redeploy subsequentlymvn cargo:undeployto undeploy
- Check for application name printed by Cargo output. Access the application at http://localhost:8080/
mvn clean package -DskipTests- Deploy on GlassFish using
asadmin deploy target/XXX.waror deploy on Wildfly usingTBD - Access http://localhost:8080/XXX/ (main page shows up)
The following script will generate the complete list of samples.
find . -name pom.xml -depth 3 -maxdepth 3 | sed 's|\./||g' | sed 's|\/pom.xml||g'
There are 161 samples as of 9/16.