Creating an Enterprise Bean
See Also
- In the Projects window, select any existing EJB module project.
- Choose File > New
(Ctrl-N) from the main window.
- From the Enterprise category, select one of the following EJB templates:
- Follow the directions in the rest of the wizard.
When you create an enterprise bean in a Java EE 5 project, the IDE does the following:
- Creates the bean class and the interfaces under the Source Packages node.
- Opens the bean class in the Source Editor.
When you create an enterprise bean in a J2EE 1.4 project, the IDE does the following:
- Adds a node for the enterprise bean under the project's Enterprise Beans
node. This node contains a node for the bean class and nodes for the bean's
business methods and CMP fields.
- Updates the deployment descriptors for the EJB module and the Java EE module
that contains the EJB module. If your target server is the Sun Java System
Application Server, the IDE also configures the server-specific deployment
descriptors. For all other application servers, you have to write the server-specific
deployment descriptors yourself.
- Opens the bean class in the Source Editor.
- See Also
- Creating an EJB Module Project
- Creating an Enterprise
Application Project
- About Creating
Web Applications
- Generating CMP Entity Beans from a Database
- Generating
Persistent Entity Classes from a Database
Legal Notices