Access the Samples (Samples Gallery)

 

+

Search Tips   |   Advanced Search

 

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.

You can upgrade the Samples Gallery, including the server samples and client samples. For detailed information, refer to...

app_server_root/samples/readme.html

Your appserver must be running. The Samples must be installed.

[Windows] On Windows systems, click (for example)...

Start | Programs | IBM WebSphere | Application Server v6.1 | Profiles | profile_name | Samples Gallery

To access...

http://hostname:9080/WSsamples

Client Samples...

app_server_root/samples/index.html

...local file system

The Samples are for demonstration purposes only. See the following limitations for details.

What is new First time here? Read the following information. A little setup is involved.

Samples Gallery

Client Samples Gallery

General information

 

Samples Gallery contents

The Samples Gallery includes the following materials:

Plants by WebSphere

This application demonstrates several Java 2 Platform, Enterprise Edition (J2EE) functions, using an online store that specializes in plant and garden tool sales.

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 J2EE applications.

Web Services Samples

These Samples demonstrate J2EE beans and JavaBeans components that are available as Web services.

Service Data Objects (SDO) Sample

This Sample demonstrates data access to a relational database through Service Data Objects (SDO) and JDBC Mediator technologies.

BeenThere workload management Sample

This Sample demonstrates the workload management and clustering capabilities of the product, and is the only Sample that is supported in a multi-server, clustered environment.

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 WAS Samples Gallery, perform the following steps.

  1. Install the product.

    Select to install the Application Server Samples package.

    The Samples are installed in the app_server_root/samples directory.

  2. Create a stand-alone appserver profile.

    See Creating profiles through the graphical user interface for more information.

    If you already created a profile without the Samples, and you want to create additional profiles that contain the Samples, you have to use the graphical profile creation interface.

    The Samples are installed in the directory profile_root/installedApps/cell_name. The Sample source code is placed in the directory profile_root/installedApps/cell_name/samples.

    You can build or modify the Samples source code to support your project.

    To run the Samples in a distributed WebSphere Application Server ND environment, install and configure the Samples in a stand-alone appserver profile installation, and then use addNode to federate the node into the deployment manager cell. When running the addNode command, use the dmgr_host argument, and -includeapps and -includebuses options. For a complete list of the addNode parameters and their usage, see addNode command. For example:

    addNode.sh/bat dmgr_hostname -includeapps -includebuses
    

    Start the appserver.

  3. 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.

    The Plants by WebSphere application is installed on the appserver by default. That is, we need not deploy the PlantsByWebSphere.ear file onto the appserver. This application is listed as an installed Sample in the Samples Gallery.

  4. Install additional Samples.

    Additional Samples are initially listed as installable Samples in the Samples Gallery.

    To deploy them to the appserver, use the install script in the app_server_root/samples/bin directory. See the Samples Gallery for more detailed instructions.

For information about configuring security for Samples, see the Samples Gallery.

 

Change the Samples Gallery port number and troubleshooting

If you are unable to access the Samples Gallery, verify the following items.

 

Client Samples Gallery contents

The Client Samples Gallery demonstrates the following clients.

 

Installing and viewing the Client Samples Gallery

To view the Client Samples Gallery, install the WAS client on a distributed machine.

See Installing Application Client for WAS for more information.

Access the Client Samples Gallery on your local file system at app_server_root/samples/samples/index.html.

 

Limitations of the Samples

 

Additional Samples and examples

Samples on developerWorks

Additional WAS Samples are available on WebSphere developerWorks

Samples in tutorials

Many tutorials rely on Sample code. To find tutorials that demonstrate specific technologies, browse the links in Tutorials.

Examples in the product documentation

The product documentation contains many code snippets and examples. To locate these examples easily, see the developer examples in the Reference section of the information center navigation for the product edition that you are using.

Java Samples on the Sun Microsystems Web site

Although they do not showcase the capabilities added by purchasing WebSphere Application Server, the Samples on the java.sun.com Web site demonstrate the basic functionality of various technologies.