Pramati Technologies

Creating EJB 1.1 Beans

This chapter describes how to create entity beans having version 1.1, using Bean Wizard. Entity beans with bean managed persistence requires ejbHome, ejbFind, and business methods, all of which can be created using the Bean Wizard.

Start Bean Wizard using Tools > Bean Wizard from the main menu. In the following sections, a brief description of the steps involved in creating these beans is provided.

Refer the relevant chapters for detailed description of each of the panels in the Bean Wizard.

Selecting Modules

EJB 1.1 Beans can be created only in EJB 1.1 or Java Modules. While creating a Desk, select the template as "EJB 1.1 Desk". This template comprises a EJB 1.1 Module, a JAR and a WAR. You could also create a these modules by right clicking on the Desk Root and selecting a new folder type as a Java Module or EJB 1.1 Module.

Creating Session Beans

Session Beans are short lived components that are transaction aware and are deleted when the container crashes. They always execute on behalf of a single client, and also updates shared data in an underlying database. Session beans are of two types - Stateful, and Stateless.

The following are the panels that appear, while creating Session beans in the Expert mode:

The home and local home interfaces for the stateless session beans are created automatically as per the ejb specification. The wizard therefore does not bring this panel up for stateless session beans

Creating Entity Beans

An entity bean is a long-lived component that operates on a database on a continuing basis. The Entity Beans need information about

The following are the panels that appear, while creating Entity beans in the Expert mode:


Pramati Technologies  © Copyright   TOCPREVNEXTINDEX