# Creating enterprise beans

You can use a wizard to create session beans and message-driven beans.

Before you can create an enterprise bean, you must:

- Define an EJB project to contain the enterprise bean. See Creating EJB projects
- Install XDoclet annotation support and enable it. See Configuring XDoclet annotation support

After you create an EJB project, you can add enterprise beans to the EJB project in one of the following ways:

- Create new enterprise beans
- Import enterprise beans from EJB JAR files

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.

With the wizard, you can create two types of enterprise beans: session beans and message-driven beans (EJB 2.0 or later projects only).

(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.