Java EE Code Samples & Apps


At a Glance 

APIs & Docs
 

Code & Apps
 

Tutorials
 

Tech Articles & Tips
 
   

Java EE 5
 

J2EE 1.4
 
   
»  GlassFish Samples
»  Contribute New Samples

Java EE Code Samples & Apps

Java EE 5 Sample Applications

Download Java EE 5 Sample Applications
»  Distribution Readme

Demonstrates the technologies and features specific to the Java Platform, Enterprise Edition 5. The features include annotations, EJB 3.0, persistence, security, web services and many others. Following is the current list of sample applications by technology category.

After downloading the samples bundle, install it under <sdk-install-root>/samples so that it looks like <sdk-install-root>/samples/javaee5. Remember to update <sdk-install-root>/samples/bp-project/build.properties before you start working on samples. If build.properties does not exist, you may copy it from build.properties.sample. Refer to <sdk-install-root>/samples/javaee5/index.html for details.

Sample Application Description
Enterprise JavaBeans 3.1
annotation-override-interceptor-ear Demonstrates how the order in which the interceptors are invoked can be altered using the deployment descriptor.
customer-cmp-ear Demonstrates the use of Java Persistence APIs based on the Java Persistence specification.
interceptor-stateless-ear A simple EJB 3.0 stateless session bean with a remote business interface that uses an EJB 3.0 interceptor mechanism to validate the parameter passed to a business method.
jsf-jpa-war Demonstrates the use of Java Persistence APIs based on the new Java Persistence specification in conjunction with JavaServer Faces that creates a simple authentication scheme using JavaServer Faces PhaseListeners and a simple entity bean representing a user.
lottery-annotation-ear A simple example that demonstrates the Java EE 5 annotation facility.
security-stateless-ear A simple security example of an EJB 3.0 stateless session bean that uses annotations to specify the authorization.
servlet-stateless-ear A simple EJB 3.0 stateless session bean with a local business interface invoked by a servlet. Demonstrates the concept of dependency injection, a new feature in Java EE 5.
web-jpa-war Demonstrates the use of Java Persistence APIs based on the new Java Persistence specification within a servlet.
Web Services
hello-jaxws A "hello world" web service example (the simplest possible example) using JAX-WS.
ssl-jaxws-ear Demonstrates the creation of a secure JAX-WS web service endpoint (https) and accessing it using a Java application client. The service is protected at transport level and accessed by performing SSL server-side authentication.
JAXB
simple-jaxb Unmarshals an instance document into a Java content tree and accesses data contained within it.
Left Curve
Java SDKs and Tools
Right Curve
Left Curve
Java Resources
Right Curve

Java 8 banner (182)



Java One 2014 RHS Banner

Duke's Choice RHS Banner