Creating EJB projects
About this task
An EJB module is used to assemble one or more enterprise beans into a single deployable unit. It is deployed in a standard Java™ archive (JAR) file. An EJB module can be used as a standalone application, or it can be combined with other modules to create a Java EE enterprise application. An EJB module is installed and run in an enterprise bean container. An EJB project must be referenced by an enterprise application project (defined as a module in an EAR) in order to be deployed successfully and run on a server.
An EJB module contains the following:
- One or more deployable enterprise beans.
- A deployment descriptor, stored in an Extensible Markup Language (XML) file. This file declares the contents of the module, defines the structure and external dependencies of the beans in the module, and describes how the enterprise beans are to be used at run time.
Procedure
What to do next
Note: The New Project wizard automatically
adds default facets to your project. You can change these facets or
add new ones in the Preferences window. For
more information, see Adding facets.