Prev | Next

TOC | Index

J2EETM Developer's Guide
Appendix A: Code Examples


Appendix A: Code Examples


The following table lists the code examples documented in this manual. Because the examples are meant to illustrate specific concepts, they are simple and brief. For an example of a full-scale J2EE application, see the J2EE Blueprints web site .
TABLE A Documented Code Examples

Topic Demonstrated by
the Example

Section Documenting
the Example

Location of Source Code
(subdirectory under
doc/guides/ejb/examples)

simple stateless session bean "Getting Started" converter
stateful session bean
w. exception and helper class
"A Session Bean Example" cart
environment entry "Accessing Environment Entries" checker
entity bean
w. bean-managed
persistence
"A Bean-Managed Persistence Example" account
entity bean
w. container-managed
persistence
"A Container-Managed Persistence Example" product
entity beans
w. one:one
relationships
"One-to-One Relationships" storagebin
entity beans
w. one:many
relationships and
helper classes
"A Helper Class for the Child Table" order
entity beans (2)
w. one:many
relationships
"An Entity Bean for the Child Table" salesrep
entity beans
w. many:many
relationships
"Many-to-Many Relationships" enroller
database connection "How to Connect" account
container-managed
transaction
"Container-Managed Transactions" bank
bean-managed,
JDBCTM transaction
"JDBC Transactions" warehouse
bean-managed,
JTA transaction
"JTA Transactions" teller
stand-alone JavaTM
application client
"Stand-Alone JavaTM Applications" converter
J2EE application client "J2EE Application Clients" converter
servlet client
of an enterprise bean
"Servlets" adder
JSP client
w. JavaBeansTM comp.
"JavaServer PagesTM Components" jsptobean
enterprise bean client "Other Enterprise Beans" shipper
JSP client
w. tag extension
"Accessing Enterprise Beans Through JSP Tag Libraries" jsptag
enterprise bean
sending an email
"Sending Email from an Enterprise Bean" confirmer
enterprise bean
connecting to a URL
Section "Connecting to a URL in an Enterprise Bean"-148 urlconnect



Prev | Next

TOC | Index


Copyright © 2000 Sun Microsystems, Inc. All rights reserved.