Sun ONE logo     Previous      Contents      Index      Next     
Sun ONE Web Services Platform Developer Edition Developer's Guide



Other Sample Applications in Point Products

Samples in Point Products

This section provides an introduction to the point product sample applications found in the Sun™ ONE Web Services Platform Developer Edition software.

This section contains the following topics:

Sun ONE Application Server

The Sun ONE Web Services Platform Developer Edition contains the Sun ONE Application Server.

An index of the samples applications found in the Sun ONE Application Server product is taken from the Sun ONE Application Server documentation, and is included in this section.

After installing the Sun ONE Application Server, an index of the sample applications becomes available at http://<your.full.domain.name>/samples/docs/index.html.

Sun ONE Application Server 7: Index of Sample Applications


[webapps/] [ejb/] [webservices/] [rmi-iiop/] [jdbc/] [jms/]
[
corba/] [connectors/] [jndi/] [security/] [transactions/] [javamail/] [logging/] [dukesbank/] [lifecycle/] [packaging/] [i18n/] [xml/]
[
wireless/] [migration/] [petstore 1.3_01/] [smartticket1.1.1/] [nsapi/] [acc/]


The following table shows the J2EE™ Web Application examples.

   J2EE Web Application Examples

First Level Directory

Second Level Directory

Description

webapps/

 

 

J2EE Web Application Examples.

 

simple/

 

 

Basic JSP and servlet examples combined into a single Web application.

 

caching/

 

 

JSP and servlet examples demonstrating how to cache results of JSP and servlet execution.

 

jstl/

 

 

Basic examples using the JSP Standard Tag Library.

 

security/

 

 

Examples demonstrating how to secure J2EE Web applications via standard authentication mechanisms and access controls.

 

 

basic-auth/

 

Securing a Web application with basic authentication.

 

 

form-auth/

 

Securing a Web application using form-based authentication.

 

 

client-cert/

 

Securing a Web application using client certificates.

 

bookstore/

 

 

Examples that demonstrate how to deploy and run the Duke's Bookstore Sample Application in conjunction with the Sun ONE Application Server.

 

The following table shows the Enterprise JavaBean examples.

   Enterprise JavaBean Examples

First Level Directory

Second Level Directory

Description

ejb/

 

 

Enterprise JavaBean Examples.

 

stateless/

 

 

Stateless session bean examples.

 

 

simple/

 

Hello World - A simple stateless EJB example.

 

 

checker/

 

A stateless EJB example.

 

 

converter

 

Converter is an application based on Servlets, stateless EJBs, JSPs, and HTML. (From the J2EE tutorial.)

 

stateful/

 

 

Stateful session bean examples.

 

cmp/

 

 

Entity beans using Container Managed Persistence (CMP).

 

 

simple/

 

A simple CMP example.

 

 

roster/

 

The roster application has five components. The RosterAppClient component is a J2EE application client that accesses the Roster EJB session bean through the bean's remote interfaces.

Roster EJB accesses three entity beans through their local interfaces:

  • Player EJB
  • TeamEJB
  • LeagueEJB
 

bmp/

 

 

Entity beans using Bean Managed Persistence (BMP).

 

 

simple/

 

A simple BMP example.

 

 

savingsaccount

 

A simple bank using a BMP to persist data in a relational database.

 

 

enroller/

 

Enroller sample demonstrates the use of mapping a many-to-many relationship between database tables to a pair of entity beans with bean-managed persistence.

 

 

order/

 

Order sample demonstrates the use of mapping a one-to-many relationship between database tables to a pair of entity beans with bean-managed persistence.

 

 

salesrep/

 

Salesrep sample demonstrates the use of mapping a one-to-many relationship between database tables to a pair of entity beans with bean-managed persistence.

 

 

robean/

 

This sample demonstrates the support for read-only beans in Sun ONE Application Server.

 

mdb/

 

 

Message Drive Bean (MDB) examples.

 

subclassing/

 

 

Demonstrate subclassing of Enterprise JavaBeans as a way of simplifying bean classes.

 

The following table shows the Java Web Services examples.

   Java Web Services Examples

First Level Directory

Second Level Directory

Description

webservices/

 

 

Java Web Services Example.

 

jaxrpc/

 

 

A suite of JAX-RPC samples.

 

 

simple/

 

A Web Service named Hello World.

 

 

simplebean/

 

A client program invoking methods with arguments of non-primitive type, of a Web service using JAX-RPC.

 

 

toejb/

 

A stand-alone JAX-RPC client makes a remote call on a JAX-RPC service that is deployed as a servlet.

 

 

dynamic/

 

A Dynamic Invocation Interface (DII) Client Example.

 

 

proxy/

 

This example shows how to call a remote procedure through a dynamic proxy, a class that is created during runtime.

 

jaxr/

 

 

A suite of JAXR samples.

 

jaxm/

 

 

A suite of JAXM samples.

 

 

simple/

 

A simple JAXM example.

 

 

saaj-simple/

 

An HTTP servlet sends a SOAP message which is received by another JAXM servlet to illustrate a roundtrip JAXM SAAJ (SOAP with Attachments API for JAVA) message exchange.

 

 

translator/

 

JAXM translator sample application.

 

 

jaxmtags/

 

A simple JAXM example, showing how to utilize the JAXM Tag Library.

 

 

soaprp/

 

An example of a round trip message that uses a JAXM messaging provider that supports the basic SOAP-RP profile to send and receive a message.

 

 

jaxm-provider/

 

A sample Messaging provider for the soappr sample.

 

 

jaxm-providera dmin/

 

An Administrative tool for the JAXM Messaging Provider sample.

 

cb/

 

 

The Coffee Break application demonstrates the sale of coffee on the Internet. It showcases all of the components of the Web services pack (JAXR, JAXM, JAX-RPC).

 

The following table shows the RMI/IIOP examples.

   RMI/IIOP Examples

First Level Directory

Second Level Directory

Description

rmi-iiop/

 

 

RMI/IIOP Examples.

 

simple/

 

 

Basic example of using a Java application client to access a stateless EJB using RMI/IIOP.

 

cpp/

 

 

This application is a simplified version of a Shopping Cart to demonstrate how a C++ IIOP client can access a Stateful Session Bean such as a Shopping Cart.

 

The following table shows the Java Database Connectivity examples.

   Java Database Connectivity Examples

First Level Directory

Second Level Directory

Description

jdbc/

 

 

Java Database Connectivity Examples.

 

simple/

 

 

Basic servlet accessing an RDBMS via JDBC.

 

blob/

 

 

EJB accessing Binary Large Objects (BLOBs) via JDBC.

 

transactions/

 

 

EJB using the transaction API within JDBC to control a local transaction.

 

The following table shows the Java Message Service examples.

   Java Message Service Examples

First Level Directory

Second Level Directory

Description

jms/

 

 

Java Message Service Examples.

 

queue/

 

 

Example demonstrating how to interact with a message queue using JMS.

 

topic/

 

 

Example demonstrating how to interact with a message topic using JMS.

 

soaptojms/

 

 

Example demonstrating how to convert a SOAP message to a JMS message, then send the message to a Topic via JMS and vice versa.

 

The following table shows the Accessing Backend CORBA Resources examples.

   Accessing Backend CORBA Resources Examples

First Level Directory

Second Level Directory

Description

corba/

 

 

Accessing Backend CORBA Resources Examples.

 

ejbsample/

 

 

The sample demonstrates how a simple stateless session bean can call methods of a remote CORBA object with IONA E2A platform as the underlying ORB.

 

servletsample/

 

 

This example application demonstrates how a very simple servlet can call methods of a remote CORBA object based on using Orbix as the underlying ORB.

 

The following table shows the J2EE Connector Architecture examples.

   J2EE Connector Architecture Examples

First Level Directory

Second Level Directory

Description

connectors/

 

 

J2EE Connector Architecture Examples.

 

simple/

 

 

Basic EJB using a connector to access a backend system.

 

cci/

 

 

A sample demonstrating the Common Connector Interface (CCI)

 

The following table shows the Java Naming and Directory Interface examples.

   Java Naming and Directory Interface Examples

First Level Directory

Second Level Directory

Description

jndi/

 

 

Java Naming and Directory Interface Examples.

 

url/

 

 

An EJB using the URL resource facility to access a resource.

 

The following table shows the Security examples.

   Security Examples

First Level Directory

Second Level Directory

Description

security/

 

 

Security Examples.

 

realms/

 

 

Examples demonstrating how to develop, configure and exercise pluggable authentication modules.

 

 

simple/

 

Refer to webapps->security->file-auth sample.

 

 

rdbms/

 

Developing a realm to connect to a relational database.

 

The following table shows the Distributed Transaction examples.

   J2EE Web Application Examples

First Level Directory

Second Level Directory

Description

transactions/

 

 

Distributed Transaction Examples.

 

ejb/

 

 

Examples demonstrating distributed transactions using both container and bean managed transaction controls.

 

 

bmt/simple/

 

A basic bean managed transaction.

 

 

bmt/teller/

 

Teller application with bean managed-transactions using JTA.

 

 

cmt/simple/

 

A basic container managed transaction.

 

 

cmt/bank/

 

A bank sample application with container managed transactions.

 

web/

 

 

Servlet using the Java Transaction API that demonstrates control of a transaction when calling an EJB.

 

The following table shows the JavaMail examples.

   JavaMail Examples

First Level Directory

Second Level Directory

Description

javamail/

 

 

JavaMail Examples.

 

simple/

 

 

Stateless EJB using the JavaMail API to send an email message.

 

The following table shows the Logging examples.

   Logging Examples

First Level Directory

Second Level Directory

Description

logging/

 

 

Logging Examples.

 

simple/

 

 

This sample demonstrates the use of Loggers in writing enterprise applications.

 

The following table shows the Duke's Bank example.

   Duke's Bank Example

First Level Directory

Second Level Directory

Description

dukesbank/

 

 

Duke's Bank is an online banking application which contains two clients:

  • A J2EE application client used to manage customers and accounts used by administrators.
  • A Web client used by customers to access account histories and perform transactions.
 

The following table shows the Lifecycle Listener (Startup) Class examples.

   Lifecycle Listener (Startup) Class Examples

First Level Directory

Second Level Directory

Description

lifecycle/

 

 

Lifecycle Listener (Startup) Class Examples

 

simple/

 

 

Basic Lifecycle Listener class that displays Hello World upon server startup.

 

jdbc/

 

 

Lifecycle Listener class accessing an RDBMS via JDBC.

 

multithreaded/

 

 

Lifecycle Listener class accessing an RDBMS via JDBC using threads.

 

rmiserver/

 

 

Lifecycle Listener class that brings up and shuts down a remote service.

 

The following table shows the Packaging examples.

   Packaging Examples

First Level Directory

Second Level Directory

Description

packaging/

 

 

The packaging sample demonstrates numerous methods in which applications and components can be packaged and deployed to the Sun ONE Application Server.

 

The following table shows the i18n examples.

   i18n Examples

First Level Directory

Second Level Directory

Description

i18n/

 

 

Internationalization and Localization examples

 

simple/

 

 

Basic J2EE Web application which demonstrates how to dynamically change the display language based on user preference.

 

The following table shows the XML Processing examples.

   XML Processing Examples

First Level Directory

Second Level Directory

Description

xml/

 

 

XML Processing Examples.

 

dom/

 

 

A DOM sample.

 

sax/

 

 

A SAX sample.

 

xslt/

 

 

An XSLT sample

 

The following table shows the Wireless example.

   J2EE Web Application Examples

First Level Directory

Second Level Directory

Description

wireless/

 

 

Refer to the Smart Ticket Sample Application.

 

The following table shows the Migration example.

   Migration Examples

First Level Directory

Second Level Directory

Description

migration/

 

 

How to migrate to the Sun ONE Application Server.

 

The following table shows the Petstore example.

   J2EE Web Application Examples

First Level Directory

Second Level Directory

Description

petstore 1.3_01/

 

 

This sample application shows how to use the capabilities of the J2EE platform to develop flexible, scalable, cross-platform enterprise applications. Java Petstore 1.3_01 demonstrates core J2EE 1.3 features.

 

The following table shows the Smart Ticket example.

   Smart Ticket Example

First Level Directory

Second Level Directory

Description

smartticket1.1 .1/

 

 

This sample application illustrates how the J2EE platform interoperates with the J2ME platform to create enterprise applications that serve mobile client devices, such as cell phones, two-way pagers, and palmtops.

 

The following table shows the NSAPI example.

   J2EE Web Application Examples

First Level Directory

Second Level Directory

Example

nsapi/

 

 

HTTP Server NSAPI Examples

 

The following table shows the Application Client Container (ACC) examples.

   Application Client Container (ACC) Examples

First Level Directory

Second Level Directory`

Description

acc/

 

 

Application Client Container (ACC) Examples

 

simple/

 

 

Refer to the sample in RMI/IIOP Examples for the use of ACC.

 

Sun ONE Identity Server

The Sun ONE Web Services Platform Developer Edition contains the Sun ONE Identity Server.

A brief introduction to the samples included with the Sun ONE Identity Server is shown here.

The following table shows the amadmin CLI examples.

   amadmin CLI Examples

First Level Directory

Second Level Directory

Description

amadmin CLI

 

 

The amadmin CLI is a command line tool for administering the iDSAME 5.1 server. The primary intent of this tool is to aid bulk administrative tasks. For instance, if you want to create 1,000 organizations, people containers, users and groups, then it can be done in one attempt.

 

The following table shows the Integrating with DSAME on Application Server examples.

   Integrating with DSAME on Application Server Examples

First Level Directory

Second Level Directory

Description

appserver

 

 

DSAME supplies a sample war file to deploy onto Sun ONE Application Server. This war file consists of the ias-web.xml file and the web.xml file, and the compiled servlets/jsps. This war file can be found under the directory $DSAMEROOT/SUNWam/samples/appserver. The source code for these samples are also under the same directory.

 

The following table shows the Authentication examples.

   Authentication Examples

First Level Directory

Second Level Directory

Description

authentication

 

 

Explains how to compile, deploy and run the Authentication sample program.

 

The following table shows the SDK examples.

   SDK Examples

First Level Directory

Second Level Directory

Description

SDK

 

 

The sample files are created to help you understand the SDK part. It helps you to understand how creating the organizations, users, roles, adding services, and assigning policies work.

Log in into the DSAME product. This helps to get an SSO Token for that session.

Access the samples URL.

For example:

http://dinosaur.red.iplanet.com:8080/amserver/sdksample

The URL takes you to a new page where you can create Organizations, roles, and users. There are many limitations when using these samples, but it is a good way to start working on iDSAME SDK.

 

The following table shows the SSO examples.

   SSO Examples

First Level Directory

Second Level Directory

Description

SSO

 

 

This sample explains how to compile and run an SSO sample application.

 

Sun ONE Portal Server

The Sun ONE Portal Server 6.0 Desktop contains the following sample applications, described in detail in Chapter 5 of the Sun ONE Portal Server 6.0 Desktop Customization Guide, which is available at the Sun Microsystems, Inc. documentation Web site at:

http://docs.sun.com/source/816-6361-10/smpldcg.html

The JSP Tab-Based Desktop (JSPTabContainer) figure below shows:

  • The sample Portal Server Desktop, JSPTabContainer, which provides a JSP-based tab container consisting of three tabs:
    • My Front Page
    • Samples
    • Search

  • Channels in the My Front Page tab:
    • User Information
    • Sun ONE Information
    • My Bookmarks #2
    • Sample JSP
    • XML Test
    • Mailcheck Provider
    • My Bookmarks
    • My Applications

  • Channels in the Samples tab:
    • Sun ONE Information
    • URL Scraper
    • Notes
    • Pre-configured Web Service

  • Channels in the Search tab:
    • Search

JSP Tab-Based Desktop (JSPTabContainer)
This screen capture shows the JSP Tab-Based Desktop (JSPTabContainer).

Each is described in detail in the Sun ONE Portal Server 6.0 Desktop Customization Guide.

Sun ONE Studio update 1, Enterprise Edition for Java

The Sun ONE Studio update 1, Enterprise Edition for Java contains the following sample applications:

  • Warehouse Example: Build and deploy a message-driven bean (MDB)
  • Find this example in ~ee_examples/ejb/MDBDir

  • ProductRichClient Example: Entity bean methods referenced by a rich client.
  • Find this example in ~ee_examples/ejb/ProductRichClient

  • StockApp Example: Demonstrates features of the Forte for Java 4 Web Services component.
  • Find this example in ~ee_examples/webservices/StockExample

Sun ONE Web Services Platform Developer Edition

The Sun ONE Web Services Platform Developer Edition contains the following samples applications:

  • Dining Guide Sample Application
  • Parts Supplier Sample Application
  • Customer Order Tracking System (COTS) Sample Application
  • My Sun ONE Benefits Portal Sample Application
  • Stock Ticker Sample Application


Previous      Contents      Index      Next     
Copyright 2003 Sun Microsystems, Inc. All rights reserved.