WebSphere® Application Server Contexts and Dependency Injection (CDI) implementation is based on OpenWebBeans, which is configurable through the openwebbeans.properties file.
To specify CDI custom properties, place the openwebbeans.properties file inside the META-INF/openwebbeans directory of your application. Properties that are not listed below, such as those that control the lifecycle and services, should remain at the default value for the application server. See the following list of some of the available CDI custom properties:
Specifies a delay in milliseconds. Use the conversation periodic delay custom property to search for and delete unused conversations.
Value | Default |
---|---|
integer | 15000 |
Specifies that an application is a full JavaServer Pages (JSP) application. Specify true if you want to add the JSP ELResolver class to the application.
Value | Default |
---|---|
true | true |
Specify true if you want to use OpenWebBeans-specific beans.xml files for the application. The default value is false, which is the portable specification beans.xml format.
Value | Default |
---|---|
true | false |
Specify true if you want to use OpenWebBeans-specific injection for the application. The default value is false, which is the portable specification behavior.
Value | Default |
---|---|
true | false |
Specify true to enable JavaServerFaces (JSF) 2.0-based CDI extensions.
Value | Default |
---|---|
true | false |
Specify true to support conversation scopes in the application.
Value | Default |
---|---|
true | true |