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

iPlanet Setup Documentation Sun Tutorial Documentation

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

simple stateless session bean converter "Getting Started" converter
stateful session bean
w. exception and helper class
cart "A Session Bean Example" cart
environment entry checker "Accessing Environment Entries" checker
entity bean
w. bean-managed
persistence
account "A Bean-Managed Persistence Example" account
entity bean
w. container-managed
persistence
product "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 account "How to Connect" account
container-managed
transaction
bank "Container-Managed Transactions" bank
bean-managed,
JDBCTM transaction
warehouse "JDBC Transactions" warehouse
bean-managed,
JTA transaction
  "JTA Transactions" teller
stand-alone JavaTM
application client
converter "Stand-Alone JavaTM Applications" converter
J2EE application client   "J2EE Application Clients" converter
servlet client
of an enterprise bean
adder "Servlets" adder
JSP client
w. JavaBeansTM comp.
jsptobean "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.