Editing and validating your contexts and dependency injection projects
You can use the contexts and dependency injection deployment descriptor editor to edit
and validate your beans.xml
file.
Before you begin
About this task
In CDI 1.0, the beans.xml file is required in the packaging and deployment of a CDI-enabled project. The presence of the beans.xml file indicates to the container that the deployed module is a bean archive. The deployment descriptor is generated when you install the CDI facet. See Creating applications that use Contexts and Dependency Injection (CDI). Initially, the beans.xml file is empty, which means that any annotated interceptors, decorators, or alternatives that exist in your module are disabled. To enable these classes, you can configure them using the CDI deployment descriptor editor.
Starting in CDI 1.2, the beans.xml file is optional in the packaging and deployment of a CDI-enabled project. This file is not created when you add the CDI 1.2 facet. You can generate this file by right-clicking on your project and selecting from the menu.