Platform Framework
R24 AMR | Min(s) read

Configuration Validation

The sanity check application helps you to diagnose the cause of an issue and decide on what is not optimal in a Temenos Transact java deployment. As per the fail fast principle, it should ensure that the application and resources are coherent before running Temenos Transact. It provides information about components involved and highlights possible misconfigurations based on a set of rules. This section provides details on the process workflow, sanity check REST API, and common configuration for basic authentication.

You can access these information within an online dashboard using the http://localhost:8080/TAFJSanitycheck/dashboard.xhtml URL and through a REST API with the http://localhost:8080/TAFJSanitycheck/resources/configuration base URL.

A text report is generated under TAFJ_HOME/log/sanitycheck.log.

Many components and resources are involved in a deployment and different type of errors could occur with more or less important consequences as listed below:

  • Error preventing the application server to start and / or application to deploy and the system is not available.
  • Error where application server starts and deploys application but Temenos Transact is not or partially available.
  • Error where application is up and running but behavior is altered after a certain time.

The sanity check provides a tool to run:

  • A cartography of:
    • TAFJEE_EAR file to display current TAFJEE configuration
    • Application server deployment to display current resources configuration
  • A validation if:
    • Definition at ear file level matches with the definition application server level
    • Application, server and resources are working correctly all together
  • A proposition of fix and tips when validation warning or errors are raised.

The dashboard is made of three main panels:

Panel Represents Screen Capture

1

Application configuration with the view to channels, MDBs and EJBs.

2

Application server configuration with the data sources, JMS objects, threads pool, timeouts and JVM parameters.

3

Validation of the configuration, with validations events and suggestions about how fixing the eventual misconfigured resources or parameters.

Process Workflow

The following flowchart represents the workflow of creating a dashboard.

Sanity check REST API

The REST API provides same set of functionalities like the dashboard, which include:

  • Ear file configuration (MDBs, EJBs, Channels)
  • Server configuration (Data sources, JMS configuration, Thread pool, Timeouts, JVM parameters)
  • Validation events and fixes
  • Full report

The base service URL is: /TAFJSanitycheck/resources/configuration.

Basic Authentication common configuration

Comment out in the web application /webapp/WEB-INF/web.xml the section related to security at the end of the file.

Sample below is extracted from TAFJEE.war but same applies with TAFJRestServices.war.

This sample illustrates how to add a basic authentication for all URLs under TAFJEE context. It means only authenticated users with role TAFJAdmin could access these URLs. It could be refined to have a security role per URL.

<!-- Security Stuff A template configuration to secure the webApp -->
	<security-constraint>
		<web-resource-collection>
			<web-resource-name>TAFJEE</web-resource-name>
			<url-pattern>/*</url-pattern>
		</web-resource-collection>
		<auth-constraint>
			<role-name>TAFJAdmin</role-name>
		</auth-constraint>
	</security-constraint>
	<security-role>
		<role-name>TAFJAdmin</role-name>
	</security-role>
	<login-config>
		<auth-method>BASIC</auth-method>
		<realm-name>TAFJRealm</realm-name>
	</login-config>

Copyright © 2020- Temenos Headquarters SA

Published on :
Monday, May 27, 2024 5:10:22 PM IST