Here you'll find relevant code samples and sample applications.
Java BluePrints define the application programming model for end-to-end solutions using the Java Platform, Enterprise Edition (Java EE).
Java EE 5 Sample Applications
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.
The Java Pet Store 2.0 Reference Application
This early access application is designed to illustrate how you can use the Java EE 5 platform to design and develop an Ajax-enabled Web 2.0 application. The application comes with full source code available under a BSD-style license, so you can experiment with it and use it in your own applications.
Web Developer Resource Center: Samples
Check out these demos of sample applications, components, and widgets you can try in your next-generation web applications. Download the code and make them your own.
Tech Tips present sample code solutions and techniques for developing in the Java Platform, Standard Edition (Java SE) and Java Platform, Enterprise Edition (Java EE).