Sun GlassFish Enterprise Server 

Index of Sample Applications

Click the sample application to learn about the sample and the procedure to build and run. Some of the sample applications require you to configure resources (such as a database, JDBC, Connector, JMS or JavaMail). If so, the individual sample documentation will explain the necessary steps.


Sample ApplicationDescription
Enterprise Java Beans
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 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.

Servlet 3.0
Servlet 3.0 Annotations Application

A Servlet 3.0 application using annotations for servlet, filter, and content listener.

Servlet 3.0 Asynchronous Application

A Servlet 3.0 application using asychronous 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.

Servlet 3.0 Multipart Application

A Servlet 3.0 application that demonstrates multipart (a.k.a. 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 take whatever action as 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.

JSF 2.0
Basic AJAX Application
A series of simple programs intended to illustrate some of the new Ajax features that are contained in JSF 2.0. 
AJAX Basic Composite Component Application
A series of simple programs intended to illustrate some of the new Composite Component features that are contained in JSF 2.0.
AJAX Complete Application
A series of simple programs intended to illustrate some of the new Ajax features that are contained in JSF 2.0.
Weld

JSF 2.0 Weld Application

An application that demonstrates the use of Weld with JSF 2.0.

Weld Servlet Application

An application that illustrates the injection of Weld into a servlet.

Security

Programmatic Login Application

A web application that demonstrates the programmatic security (login/logout) feature in Servlets 3.0.

HTTP Method Omissions Application

A web application that demonstrates the use of http-method-omission feature of Servlet 3.0  to restrict the set of supported HTTP methods to just GET and POST.

Java Persistence API 2.0

JPA Pessimistic Locking Application

An application that demonstrates the use of locking with Java Persistence APIs.

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.

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.



Copyright © 2009 Sun Microsystems, Inc. All rights reserved.