Configuring a custom Information Console web application
Information Console’s configuration determines many of its essential methods. Configuring your web application customizes how it operates internally, and affects the user’s experience. Perform cosmetic customization tasks using the Information Console style sheets, as described in Modifying global style elements.
Set configuration parameters for the Information Console application to tune performance and to control service and application execution. For example, you can perform the following tasks using configuration parameters:
*Setting the default locale
*Controlling the Message Distribution service load balancing
Configure the Information Console application by changing configuration file contents, such as web.xml. The following section describes the customization procedure using the text editor.
Actuate provides separate WAR and EAR files for deploying Information Console to commonly used application servers. If you customize Information Console and need to deploy to multiple application server platforms, you make the same changes in each deployment WAR or EAR file.
How to customize Information Console configuration parameters
Use the following procedure to customize configuration parameters for Information Console. In this procedure, it is assumed that <context root>\WEB‑INF\web.xml is the configuration file.
1 Make a backup copy of web.xml.
2 Using a text editor that supports UTF‑8 encoding, edit web.xml to change parameter values. Parameter definitions use the following format:
<param-name><keyword></param-name>
<param-value><value></param-value>
*<keyword> is the name of the parameter.
*<value> is the parameter value.
Do not enclose the keyword and value within quotes, and use no spaces between <param-name>, the keyword or value, and </param-name>. For example, the definition for the default locale parameter is:
<param-name>DEFAULT_LOCALE</param-name>
<param-value>en_US</param-value>
3 Save web.xml.
4 Restart the application server or servlet engine that runs Information Console and clear your browser cache.
Setting the default locale
The default locale and time zone for Information Console are set when you install it. To change the default settings, you modify the values of the DEFAULT_LOCALE and DEFAULT_TIMEZONE configuration parameters.
How to set a default Information Console locale and time zone
1 Using a UTF-8 compliant code editor, open the web.xml configuration file.
2 Navigate to the lines that define DEFAULT_LOCALE, similar to the following code:
<param-name>DEFAULT_LOCALE</param-name>
<param-value>en_US</param-value>
Change the current locale id, en_US in the above example, to the desired locale id in param-value. Valid locale id strings are listed in <context root>\WEB‑INF\localemap.xml.
3 Navigate to the lines that define DEFAULT_TIMEZONE, similar to the following code:
<param-name>DEFAULT_TIMEZONE</param-name>
<param-value>America/Los_Angeles</param-value>
Change the current time zone id, Pacific Standard Time in the above example, to the desired default time-zone in param-value. Valid time zone id strings are listed in <context root>\WEB-INF\TimeZones.xml.
4 Save web.xml.
5 Restart the application server or servlet engine that runs Information Console and clear your browser cache.
6 Open the Information Console web application. The login page for the custom application appears.
Controlling the Message Distribution service load balancing
The default load balancing for Information Console is set when you install it. To change the default settings, you modify the values of the MDS_ENABLED and MDS_REFRESH_FREQUENCY_SECONDS configuration parameters.
If you are using third-party load balancing, you need to refer to their documentation to configure load balancing. See Understanding Information Console.
How to enable the Message Distribution service
The Message Distribution service (MDS) is enabled by default. This procedure assumes it has been disabled.
1 Using a UTF-8 compliant code editor, open the web.xml configuration file.
2 Navigate to the lines that define MDS_ENABLED, similar to the following code:
<param-name>MDS_ENABLED</param-name>
<param-value>false</param-value>
Change the current value, if it is false, to true.
3 Navigate to the lines that define MDS_REFRESH_FREQUENCY_SECONDS, similar to the following code:
<param-name>MDS_REFRESH_FREQUENCY_SECONDS</param-name>
<param-value>0</param-value>
Change the current refresh frequency in seconds, 0 in the above example, to the desired number of seconds so that MDS will attempt to discover new nodes added to the cluster or remove nodes dropped from the cluster.
4 Save web.xml.
5 Restart the application server or servlet engine that runs Information Console and clear your browser cache.
Setting the JavaScript MIME types for Apache Tomcat
Apache Tomcat 6.0.39 or newer requires a text MIME type for the JavaScript mime-mapping configuration for Information Console and iHub to support the Actuate JavaScript API.
How to change the mime-mapping configuration for Information Console
1 Navigate to the following directory:
~\Actuate\iHub3\modules\BIRTiHub\iHub\web\iportal\WEB-INF
2 Open web.xml for editing and navigate to the mime-mapping section shown in Listing 3‑1.
Listing 3‑1 mime-mapping in web.xml for Information Console
<mime-mapping>
<extension>js</extension>
<mime-type>application/javascript</mime-type>
</mime-mapping>
3 Change the value of the mime-type parameter to the following:
<mime-type>text/javascript</mime-type>
4 Save and close web.xml.
5 Restart the Actuate iHub 3.1 Service.
For more information about BIRT iHub Information Console web.xml configuration, see Managing Volumes and Users.