This sample database contains a collection of live code examples that illustrates techniques for implementing Enterprise JavaBeans (EJBs) in your applications.
These examples reside in the Examples37_EJB database.
This page covers the following topics:
The Enterprise JavaBeans Specification provides a framework that allows you to build reusable Java-based components that are remotely accessible, transactional, and secure.
In the EJB Examples database, you will find examples that demonstrate the following techniques for implementing EJBs in real-world applications:
Using a stateful session bean to implement persistence across client calls.
Developing an entity bean with container-managed persistence that shows entity bean methods and database interactions, such as creating, deleting, and modifying rows. This example also illustrates expression and method-style finders.
Performing a tax calculation using different technologies: a session bean, an entity bean, and an invoked object.
Implementing an ATM simulation using different technologies: an entity bean with container-managed persistence, an entity bean with bean-managed persistence, and a session object (without EJBs).
After installing the EJB Examples database, start the Main Designer.
Select the EJB Examples database in the left pane of the Main Designer.
The application starts up in your browser:
Browse through the list in the left navigation pane and select examples of interest.
The example you select opens in the right pane, where you can interact with its controls:
To learn how to implement EJB technologies and access sample code that you can incorporate in your applications, go to Application Techniques in the help system: Enterprise JavaBean Techniques.
For introductory information about EJBs, see the following chapters in Getting Started:
For technical information about implementing EJBs, see the following chapters in the Programmer's Guide:
For technical information about deploying EJBs, see the following chapter in the Facilities Guide of the server's Core Help:
Copyright © 2001, SilverStream Software, Inc. All rights reserved.