+

Search Tips   |   Advanced Search

Contexts and Dependency Injection custom properties

WebSphere Application Server traditional 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 the 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

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

That an application is a full JSP application. Specify true to add the JSP ELResolver class to the application.

Value Default
true true


org.apache.webbeans.useOwbSpecificXmlConfig

Specify true to use OpenWebBeans-specific beans.xml files for the application. The default is false, which is the portable specification beans.xml format.

Value Default
true false


org.apache.webbeans.fieldInjection.useOwbSpecificInjection

Specify true to use OpenWebBeans-specific injection for the application. The default 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

  • Contexts and Dependency Injection (CDI)