Java EE 6 Samples

Samples are key to adoption of new Java EE technologies. As with our previous Java EE releases, we will need to create new samples for Java EE 6. For this release, we will start with following two categories of samples.

  1. Java EE 6 Tutorial at https://javaeetutorial.java.net/
  2. GlassFish Samples at https://glassfish-samples.java.net/
  3. Use this template to create samples docs (index.html)

Time and resource permitting, we will try to revisit Java EE blueprints at https://blueprints.java.net/ and update them for Java EE 6.


Next Steps:

There is a good plan for Java EE Tutorial at JavaEE6TutorialVolume1DocPlan. The next step is come up with a plan for Java EE 6 samples.

Java EE 6 samples should build upon Java EE 5 samples available in the GlassFish Samples project. These samples should be slightly more advanced than the examples included in the Java EE tutorial or should cover the areas not yet covered in the Java EE tutorial plan. Some of these samples might be included in Java EE tutorial in a future update. Please review the table below and update it to ensure proper coverage for new or interesting features in your area in samples.

Note: The following table is intended to be edited by Java EE specification leads or GlassFish module leads.

Technology Owner List of Samples Feature ready in M2 Feature ready in M6 Priority Developer Sample checked in
Java Persistence API 2.0 Linda DeMichiel Pessimistic locking. (web and full profiles) Y   2 Sherry Shen, Mitesh Meswani Y, checked in MS2
Java Persistence API 2.0 Linda DeMichiel O/R mapping with ternary relationships (maps)Derived identifiers (web and full profiles) N Y 3 Sherry Shen, Mitesh Meswani Y - checked in 9/28
Java Persistence API 2.0 Linda DeMichiel Criteria queries (web and full profiles) N   2 Sherry Shen, Mitesh Meswani Y - checked in 9/30. But feature is not completed by Eclipselink yet - waiting for new drop.
Java Persistence API 2.0 Linda DeMichiel Automatic validation on lifecycle events N   1   Not doing.
Enterprise Java Beans 3.1 Ken Saks ejb/servlet .war based app with no-interface view and init-time Singleton callback. (Web and full profiles) Y   1 Ken Saks Y - checked in MS2
Enterprise Java Beans 3.1 Ken Saks Automatic deployment-time timer creation (full profile only) Y   2 Marina Vatkina Y - checked in MS2
Enterprise Java Beans 3.1 Ken Saks Local session beans using injection/CMT/JPA executed with embeddable 3.1 API (web and full profiles) N   1 Marina Vatkina Y - checked in 9/16 (No NB support)
Java API for RESTful Web Services 1.0 Paul Sandoz Sample using no-interface view session/singleton EJBs as resource and provider class instances in the war. Requires SPI from GF EJB infrastructure to be ready. (Web and Full profiles) Y   1 Pavel Bucek Y - checked in MS2
Java API for RESTful Web Services 1.0 Paul Sandoz Sample using in managed beans in resource. (Web and Full profiles) N   1 Pavel Bucek Y - checked in 10/6
Servlet 3.0 Rajiv Mordani Simple servlet based application that uses just annotations and no web.xml (web and full profiles) Y   2 Shing Wai Chan Y - checked in MS2
Servlet 3.0 Rajiv Mordani Chat room sample show casing Async, annotations (web and full profiles) Y   1 Shing Wai Chan (with JeanFrancois) Y - checked in MS2
Servlet 3.0 Rajiv Mordani dynamic registration Update dynamic registration to show adding listeners features (web and full profiles) Y Y 1 Jan Luehe Y - checked in MS2. Checked in updated sample 9/8/09
Servlet 3.0 Rajiv Mordani Use of ServletContainerInitializer (web and full profiles)   Y 1 Vijay Ramachandran Y - checked in 9/11/09
Servlet 3.0 Rajiv Mordani Use of Fileupload (web and full profiles)   Y 1 Kin-man Chung Y - checked in 9/15/09
Servlet 3.0 Rajiv Mordani Use of web-fragments and demonstration of absolute ordering (web and full profiles)   Y 1 Shing Wai Chan Y - checked in 9/15/09
Servlet 3.0 Rajiv Mordani Loading static resources and JSPs from META-INF/resource (web and full profiles)   Y 1 Jan Luehe Y - checked in 9/4/09
Servlet 3.0 Rajiv Mordani Programmatic session cookie configuration (web and full profile)   Y 1 Jan Luehe Y - checked in 9/4/09
Servlet 3.0 Security Ron Monzillo (subject to removal - see proposed @Security Constraintsample) Sample that shows usage of all or some of @RolesAllowed, @DenyAll, @PermitAll and @TransportProtected on Servlets. Works in (web and full profiles) Y   2 Kumar Jayanti, Nithya Subramanian REMOVED 10/5/09 Y - checked in MS2
Servlet 3.0 Security Ron Monzillo Sample that shows usage of @SecurityConstraint/@MethodConstraint on Servlets (contingent on eearch and EG approval of change from prior use of @RolesAllowed, etc). (web and full profiles)     2 Kumar Jayanti, Nithya Subramanian Not doing for this release. Will add in future release
Servlet 3.0 Security Ron Monzillo Sample that illustrates the usage of login() and logout() API's on HttpServletRequest. (web and full profiles) Y Y 3 Kumar Jayanti, Nithya Subramanian Y - checked in MS2
Servlet 3.0 Security Ron Monzillo Sample that demonstrates the use of http-method-omission feature of Servlet 3.0, e.g. to restrict the set of supported HTTP methods to just GET and POST. (web and full profiles) Y Y 3 Kumar Jayanti, Nithya Subramanian Y - checked in MS2
Web Container Rajiv Mordani Invoking Tomcat and GlassFish style valves (Web and full profile) N Y 2 Jan Luehe Y - checked in 9/9/09
Web Container Rajiv Mordani mod_jk configuration sample N   2 Amy Roh Y - checked in 9/8/09
Java Server Faces 2.0 Ed Burns Scrum Development Application/test bean field validation using JSF 2.0 (web profile only) Y Y 1 Ed Burns Y - checked in MS2
Java Server Faces 2.0 Jim Driscoll New JSF 2.0 Feature Sample - ajax and ezcomp. (web and full profiles) Y   2 Jim Driscoll Y - checked in MS2
JSF 2.0 / Web Beans/330 Roger Kitain JSF 2.0 /Web Beans/330 Sample Y   2 Roger Kitain Y - checked in MS6 (updated sample to include 330) Y - checked in MS2
Web Beans Roger Kitain Context And Dependency Injection (JSR 299) and Servlets Sample   Y 1 Roger Kitain Y - checked in 9/9/09
Metro Web Services Bhakti Mehta A web service that doesn't bundle wrapper beans in WAR/EAR using 109 deployment (full profile) Y   1 Bhakti Mehta Y - checked in MS2
Metro Web Services Bhakti Mehta Exposing singleton as a web service (full profile) Y   2 Bhakti Mehta Y - checked in MS2
Metro Web Services Bhakti Mehta @WebServiceRef + @MTOM/@Addressing (full profile) ? Y 3 Rama Pulavarthi Y - checked in 9/15/09
Java EE Connector Architecture 1.6 Sivakumar Thyagarajan A Sample Resource Adapter that uses the new EoD constructs (only annotations and no deployment descriptor (can use the existing JavaMail sample and demonstrate how it would be built using the new EoD additions. updated sample to add a resource adapter demonstrating Security Context mechanism (full profile) Y   2 Jagadish Ramu Y - checked in MS2 Updated sample checked in 9/15, waiting for Netbeans related documentation

Jspwiki style: sortable