You can use a wizard to create session beans, entity beans, and message-driven beans.
To create an enterprise bean, you must first have an EJB project defined. After you create an EJB project, you can add enterprise beans to the EJB project in one of the following ways:
A wizard helps you to create enterprise beans. You can use the Enterprise Bean Creation wizard to generate an enterprise bean while avoiding the complexities that exist between the different types of beans. The wizard helps you add enterprise beans to you project by creating entirely new enterprise beans or by defining them from existing Java classes.
For more information about creating enterprise beans by generating a bottom-up mapping from a database schema, see Generating beans by mapping from a database schema.
With the wizard, you can create four types of enterprise beans: session beans, BMP entity beans, CMP entity beans, and message-driven beans (EJB 2.0 or later projects only).