The J2EETM Tutorial
Home
TOC
Index
PREV TOP NEXT Search
Feedback

Examples

Table C-1 lists the examples in the tutorial and specifies the chapter or section in which each is discussed.

Table C-1 Examples 
Chapter or Section
Directory
(examples/src)
Features
Container-Managed Transactions
ejb/bank
Rolling back a container-managed transaction, synchronizing a session bean's instance variables with the database values
The CartEJB Example
ejb/cart
A stateful session bean
Accessing Environment Entries
ejb/checker
A session bean with environment entries
Container-Managed Persistence Examples, Example Queries
ejb/cmproster
An application with container-managed entity beans and relationships
Mail Session Connections
ejb/confirmer
Sending e-mail from an enterprise bean
Getting Started
ejb/converter
Step-by-step instructions for building a simple application with a session bean, JSP page, and J2EE application client
Many-to-Many Relationships
ejb/enroller
Mapping a many-to-many relationship between database tables to a pair of entity beans with bean-managed persistence
URL Connections
ejb/htmlreader
Connecting to a URL from an enterprise bean
A Helper Class for the Child Table
ejb/order
Mapping a one-to-many relationship between database tables to a helper class and an entity bean with bean-managed persistence
An Entity Bean for the Child Table
ejb/salesrep
Mapping a one-to-many relationship between database tables to a pair of entity beans with bean-managed persistence
The SavingsAccountEJB Example, Database Connections for Enterprise Beans
ejb/savingsaccount
An entity bean with bean-managed persistence
A Message-Driven Bean Example
ejb/simplemessage
A simple message-driven bean that listens to a JMS queue
One-to-One Relationships
ejb/storagebin
Mapping a one-to-one relationship between database tables to a pair of entity beans with bean-managed persistence
JTA Transactions
ejb/teller
Bean-managed transactions with the javax.transaction.UserTransaction interface

JDBC Transactions
ejb/warehouse
Bean-managed transactions with the java.sql.Connection interface
Java Servlet Technology
web/bookstore1
Servlet-based Web application
JavaServer Pages Technology
web/bookstore2
JSP based Web application, w/ 1 enterprise bean
Custom Tags in JSP Pages
web/bookstore3
JSP based Web application, with JSP custom tags and one enterprise bean
JavaServer Pages Technology
web/date
Simple JSP pages
Web Clients and Components
web/hello1
Simple servlet
Web Clients and Components
web/hello2
Simple JSP pages
Programming with the CCI
connector/cci
Connecting to a resource adapter through the Common Client Interface (CCI) API of the J2EE Connector architecture
The Duke's Bank Application
bank
Full-featured J2EE application including J2EE application client, entity and session beans, servlet, JSP pages, and JSP custom tags.

Home
TOC
Index
PREV TOP NEXT Search
Feedback