How To
Summary
This article describes how to edit a Liberty server configuration to enable reads of Jandex indexes.
Objective
This article lists the steps for updating a Liberty server configuration to enable jandex index reads.
These steps are appropriate for any user who is running JavaEE applications using a Liberty Profile server and who wishes to enable a liberty server to enable reads of jandex indexes.
?
Environment
These steps are suitable for any Liberty Server environment.
These steps apply to all Liberty environments which include the capability of reading jandex indexes.
A liberty environment which can read jandex indexes has a copy of the jandex jar in the server "lib" folder, for example:
$WLP_HOME/lib/com.ibm.ws.org.jboss.jandex_1.0.21.jar
?
Steps
Jandex index reads are enabled by adding 'useJandex' attributes into the server configuration.
Reads of jandex indexes are enabled by adding a 'useJandex' attribute to the server configuration.? The attribute may be added in two locations:First, reads of Jandex indexes may be enabled for all applications by adding the attribute 'useJandex' with a value of 'true' to the application manager element of the server configuration.? For example:
?
<applicationManager autoExpand="true" useJandex="true"/>
?
<application name="TestApp" location="TestApp.war" type="war" useJandex="true"/>
For example:
?
<applicationManager autoExpand="true" useJandex="true"/>
<application name="TestApp" location="TestApp.war" type="war" useJandex="false"/>
Additional Information
Additional information is available.
See these additional articles for more information:
"Using Jandex with IBM WebSphere Liberty" Document Suite:
- "Using Jandex with IBM WebSphere Liberty: Overview
- "Using Jandex with IBM WebSphere Liberty: Generating and Storing Jandex Indexes"
- "Using Jandex with IBM WebSphere Liberty: Setting the Configuration to Enable Jandex Index Reads"
- "Using Jandex with IBM WebSphere Liberty: Expected Output and Troubleshooting "
- WildFly GitHub Organization: https://github.com/wildfly/
- Jandex GitHub Repository: https://github.com/wildfly/jandex
- Jandex Documentation: http://docs.wildfly.org/jandex/
- Jandex GitHub Maven Plugin Repository: https://github.com/wildfly/jandex-maven-plugin
Was this topic helpful?
Document Information
Modified date:
02 November 2020
UID
ibm10744925