Note: The current release is NetBeans IDE 6.5. If you are using NetBeans IDE 6.5, see the latest version of this tutorial.
In this tutorial, you first create an EJB module containing a session bean that makes images available. Next, you create a web application that contains a web service, which delegates to the EJB module to retrieve the images. The web service exposes methods that can be used by clients to access the images provided by the EJB module. Then you deploy the web application and the EJB module together, as a unit, by adding them to an enterprise application and then deploying the enterprise application. At this stage, you are introduced to GlassFish testing functionality that is available from the IDE. Finally, you create a Java application that connects to the web service to display the images in an album created from Swing components. In the concluding section, you are also shown how to optimize the transfer of images from web services to clients.
Tutorials In This Trail
To follow this tutorial, you need the following software and resources.
Both Tomcat and GlassFish can be installed with the Web and Java EE distribution of NetBeans IDE. Alternatively, you can visit the GlassFish downloads page or the Apache Tomcat downloads page.
Optionally, for troubleshooting purposes, you can download the completed sample and inspect the sources.
At the end of this tutorial, you will have a running Java Swing application that consumes the EJB module's images via a web service, with the result displayed below. 
For background information prior to using this trail, see the following resources:
To send comments and suggestions, get support, and keep informed on the latest developments on the NetBeans IDE Java EE development features, join the mailing list.
You are viewing a mobilized version of this site...
View original page here