Platform Framework
R24 AMR | Min(s) read

TAFJ Multiple Configuration

You can have multiple configuration file with a TAFJ setup. All these configuration files have the .properties extension. The default configuration is hidden in the .default file, which resides in the conf directory. The Eclipse Builder plug-in generates the new configuration files using the Eclipse project name when you toggle a java project to a TAFJ project. You can also define new configurations manually. .properties is the default property file template.

The .default file in the <TAFJ_HOME>/conf directory can be used to set a default configuration. By default, the .default file is set to tafj.properties. The system uses the value in the .default file, when no -cf argument is passed to tCompile (if the value in this file is a valid properties file).

In the examples below, assume that you installed one TAFJ and you have two Temenos Transact releases (<<TAFJ.Version>>_3 and <<TAFJ.Version>>_5). For Eclipse setup, see TAFJ Eclipse user guide. In this guide, all the setups are done manually.

  1. Copy .properties in the <<TAFJ.Version>>_3.properties and <<TAFJ.Version>>_5.properties files respectively.

    In your conf directory, you should have the following files:

    • .default
    • .properties
    • <<TAFJ.Version>>_3.properties
    • <<TAFJ.Version>>_5.properties
  1. Edit <<TAFJ.Version>>_3.properties and <<TAFJ.Version>>_5.properties.

    By conventions, the java and class path for TAFJ of a project have to be set under:

    <TAFJ_HOME>/data/<Project_Name>/java and classes

    That is for <<TAFJ.Version>>_3.properties:

  2. # Specify where the java files will be generated 
    # by the compiler
    #
    temn.tafj.directory.java 	= <tafj.home>\data/R17_3/java
    
    # Specify where the classes files will be generated 
    # by the compiler
    #
    temn.tafj.directory.classes     = <tafj.home>\data/myProject/classes
    

    Once you are done with the modifications, you can go for a full compilation.

PROGRAM HELLO
  CRT "Sample program for TAFJCore"
  CRT "Please input your Name : " :
  INPUT NAME
  CRT "HELLO " : NAME
END

Save this program as HELLO.b and compile this program using tCompile.

> tCompile –cf <<TAFJ.Version>>_3 HELLO.b

In order to run HELLO for <<TAFJ.Version>>_3, you need to type:

tRun -cf <<TAFJ.Version>>_3 HELLO

The following output is displayed:

After you enter the name, the following output is displayed:

Run the following commands to compile T24.BP with two different properties, for example, <TAFJ.Version1> and <TAFJ.version2>. (T24.BP below is a directory of basic files).

  • > tCompile -cf <<TAFJ.Version1>>.properties c:\product\T24\<<TAFJ.Version1>>\T24.BP    
  • > tCompile -cf <<TAFJ.Version2>>.propertiesc:\product\T24\<<TAFJ.Version2>>\T24.BP    

Run the following command to run a close of business for <<TAFJ.Version>>.:

tRun -cf <<TAFJ.Version1>>.properties START.TSM -DEBUG

Run the following command to run a close of business for 201705:

tRun -cf <<TAFJ.Version2>>.properties START.TSM -DEBUG

Copyright © 2020- Temenos Headquarters SA

Published on :
Monday, May 27, 2024 5:14:04 PM IST