Web Service Application Passing Binary Data, pt 1: Overview
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.
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.
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.