The Samples Gallery offers a set of Samples that demonstrate
common enterprise application tasks. The Gallery also contains descriptions
of where to find additional Samples and coding examples.
Samples Gallery contents
The
Samples Gallery includes the following materials:
- Plants by WebSphere application
- This application demonstrates several Java™ Platform,
Enterprise Edition (Java EE) functions, using an online store that
specializes in plant and garden tool sales.
Note
that you do not need to deploy the PlantsByWebSphere.ear file
onto the application server, because it is installed by default when
you create the application server profile.
- Faces Client Tutorial - Sample Portfolio
- Sample Portfolio is a sample application that demonstrates the
use of faces client components. The Hello world sample demonstrates
how the faces client framework keeps a data model consistent in the
browser.
- Technology Samples
- These Samples demonstrate various core components in Java EE applications.
- Web Services Samples
These Samples demonstrate both Java API for XML-based RPC (JAX-RPC)
and Java API for XML Web Services (JAX-WS) Web services that use Java
Platform, Enterprise Edition (Java EE) beans and JavaBeans™ components.
The
JAX-WS Web services Samples demonstrate the implementation of one-way
and two-way Web services that highlight the use of Web services standards
such as WS-Addressing (WS-A) , WS-Reliable Messaging (WS-RM), and
WS-Secure Conversation (WS-SC) and the SOAP Message Transmission Optimization
Mechanism (MTOM) technology.
- Service Data Objects (SDO) Sample
- This Sample demonstrates data access to a relational database
through Service Data Objects (SDO) and Java DataBase Connectivity
(JDBC) Mediator technologies.
- JACL scripts
- These scripts enable you to configure resources and install the
Sample applications.
- Programming model extensions Samples in the Samples Gallery
- These Samples demonstrate WebSphere® programming model
extension features such as dynamic query service, work area service,
internationalization service, ActivitySessions service, application
profiling, Java Transaction API (JTA) extensions, asynchronous beans,
and scheduler.
Installing and accessing the Samples Gallery
To
view the product Samples Gallery, perform the following steps.
- Install the product.
By default,
only the Samples Gallery and Plants by WebSphere applications are
installed on an application server. However, the Samples are installed
in the app_server_root/samples directory.
The app_server_root/samples/lib directory
contains several installable Samples.
If you selected to install
the sample applications when defining a profile, the Samples are installed
in the directory profile_root/installedApps/cell_name.
The Sample source code is placed in the directory profile_root/samples/src.
You
can build or modify the Samples source code to support your project.
- Start the application server.
- Ensure that the Samples Gallery application is running.
- Using the administrative console, click to access the Enterprise applications
page. A green arrow beside the application name indicates that the
application is running.
- Using wsadmin, run the AdminControl completeObjectName command
to see if the SamplesGallery application is running.
See Querying the application state using wsadmin scripting. If the command
returns information on the application and deployment target, then
the Samples Gallery application is running. If the command returns
nothing, then the application is not running.
- Access the Samples Gallery.
Try it out! See the quick start instructions on this page.
If
you have difficulty accessing the Samples Gallery, check the port number.
- Install additional Samples.
Additional
Samples are initially listed as installable Samples in the Samples
Gallery.
For
further instructions on installing each sample, refer to the Installable
Samples section of the Samples Gallery in your Web browser, from Step
4.
Tip: To install additional samples on non-default
profiles, you must specify the -server myServer parameter.
Additional information about -server parameter and other script values
can be found in Installable Samples, Samples install help section.
For information about configuring security for Samples, see
the Samples Gallery.