Contexts and Dependency Injection custom properties
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, 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:
org.apache.webbeans.conversation.Conversation.periodicDelay
Specifies a delay in milliseconds. Use the conversation periodic delay custom property to search for and delete unused conversations.
Value | Default |
---|---|
integer | 15000 |
org.apache.webbeans.application.jsp
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 |
org.apache.webbeans.useOwbSpecificXmlConfig
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 |
org.apache.webbeans.fieldInjection.useOwbSpecificInjection
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 |
org.apache.webbeans.application.useJSF2Extensions
Specify true to enable JavaServerFaces (JSF) 2.0-based CDI extensions.
Value | Default |
---|---|
true | false |
org.apache.webbeans.application.supportsConversation
Specify true to support conversation scopes in the application.
Value | Default |
---|---|
true | true |