Sample Application | Description |
Enterprise JavaBeans 3.1 |
EJB 3.1 Embeddable API | A very simple EJB Stateless Session Bean with a no-interface view and a POJO Entity that demonstrates EJB 3.1 Embeddable API usage. |
EJB 3.1 WAR-based Application | An EJB application that shows the use of WAR-based packaging, the no-interface Local view, Singleton session beans, and startup/shutdown callbacks. |
EJB 3.1 Automatic Timer | An EJB Stateless Session Bean with a Remote business interface and a POJO Entity that demonstrates the EJB 3.1 automatic timer feature. |
Servlet 3.0 |
Servlet 3.0 Multipart Application | A Servlet 3.0 application that demonstrates multipart (also called file upload) support. |
Servlet 3.0 Absolute Ordering Web Fragments Sample | A Servlet 3.0 application that demonstrates web fragments with absolute ordering. |
Access JAR-Bundled JSP Resource Sample | An application that demonstrates how dynamic and static resources bundled inside the META-INF/resources directory of a JAR file inside the application's WEB-INF/lib directory may be accessed in the same way as if they had been placed in the application's document root. |
Servlet 3.0 ServletContainerInitializer Sample | An application that demonstrates how the ServletContainerInitializer feature can be used by libraries to register interest in certain types of applications and to take whatever action the library sees fit. |
Programmatic Configuration of HTTP Session Cookies Sample | An application that demonstrates the new programmatic configuration support for session cookies available with Servlet 3.0. |
Servlet 3.0 Annotations Application | A Servlet 3.0 application that uses annotations for servlets, filters, and content listeners. |
Servlet 3.0 Asynchronous Application | A Servlet 3.0 application that uses the asynchronous API. |
Servlet 3.0 Dynamic Registration of Servlets and Filters Application | A Servlet 3.0 application that features the dynamic registration of Servlets and Filters from a ServletContextListener. |
Metro Web Services |
Hello-WebServiceRef Application | A JAX-WS Web Services sample that demonstrates the injection of a Web Service Client by the container through the use of @WebServiceRef and configuring WebService features like MTOM addressing on such an injected resource. |
Hello JAX-WS Application | An application that demonstrates how JAX-WS 2.2 can generate artifacts dynamically and how no use of wsgen is required when bundling and packing the artifacts. |
EJB 3.1 Singleton Web Services Application | An application that demonstrates a singleton EJB web service. It shows how easy it is to annotate a web service with @Singleton and develop clients for it. |
Java API for RESTful Web Services |
Managed Beans Application | An application that demonstrates how to annotate a REST resource class with the @ManagedBean annotation, so that a REST resource can be a Managed Bean as well. |
Message Board Application | An application that demonstrates the use of no-interface EJB session beans as RESTful resource classes deployed as a servlet. |
Weld (Contexts and Dependency Injection for the Java EE platform) |
JavaServer Faces 2.0 Weld Application | An application that demonstrates the use of Weld with JavaServer Faces 2.0. |
Weld Servlet Application | An application that demonstrates the injection of Weld into a servlet. |
JavaServer Faces 2.0 |
Basic Ajax Application | A series of simple programs that demonstrate some of the Ajax features of JavaServer Faces 2.0. |
Ajax Basic Composite Component Application | A series of simple programs that demonstrate some of the Composite Component features of JavaServer Faces 2.0. |
Ajax Complete Application | A series of simple programs that demonstrate additional Ajax features of JavaServer Faces 2.0. |
Security |
Programmatic Login Application | A web application that demonstrates the programmatic security (login/logout) feature in Servlet 3.0. |
HTTP Method Omissions Application | A web application that demonstrates the use of the http-method-omission feature of Servlet 3.0 to restrict the set of supported HTTP methods to just GET and POST. |
Java EE Connector Architecture 1.6 |
MailConnector Resource Adapter Sample Application | An application that uses the mail-connector resource-adapter to retrieve e-mails. Demonstrates how to use the annotations introduced in the Java EE Connector Architecture 1.6 specification. The mail connector resource adapter is completely built by specifying annotations. No deployment descriptor is used. |
Java Persistence API 2.0 |
JPA Advanced Mapping Sample | An application that demonstrates the use of Derived Identities and Maps. |
JPA Criteria Query Sample | An application that demonstrates the use of Criteria Queries. |
JPA Pessimistic Locking Application | An application that demonstrates the use of locking with Java Persistence APIs. |
Container Features |
Custom Valve Application | An application that demonstrates the custom valve facilities available in GlassFish v3. |
mod_jk Sample | A sample that demonstrates running GlassFish v3 with Apache httpd. |