Platform Framework
R24 AMR | Min(s) read

Compiling a L3 JBC Code for a Tenant

This section shows you how to compile a JBC L3 code for a multitenant without enabling the multitenant mode.

In a multitenant mode, TAFJ runtime has the capability to execute a specific JBC L3 code based on the tenant (Tenant ID). In this case, you need to setup the compilation of L3 JBC code with a specific java package name by using the following convention:

com.temanos.$TenantID.

The TenantID for the package name should match the TenantIDs setup in the system. A TenantID cannot have the name t24 and should be lowercase. For example, TenantID = mybank.

Example

The example below shows the compilation of a L3 subroutine call CALC.INTEREST.b for multitenants.

All JBC routines have been compiled with the default package com.temenos.t24.

There are two tenants mybank and yourbank. You need to compile CALC.INTEREST.b for mybank and yourbank.

  1. Configure the properties file in the java package. Add or change the temn.tafj.package properties for a specific tenant ID.
    temn.tafj.package = com.temenos.mybank
  2. Compile CALC.INTEREST.b with the sepecific java package. You will have to replicat this process for all tenants.

    The compiler generates the following classes:

    • com.temenos.t24.CALC_INTEREST.class
    • com.temenos.mybank.CALC_INTEREST.class
  3. Optional: If you change the java package temn.tafj.package = com.temenos.yourbank and then recompile, you will have three classes, two from the previous compilation and a new from the current compilation.

    com.temenos.t24.CALC_INTEREST.class is the wrapper caller for com.temenos.$TenantID.CALC_INTEREST.class by using reflextion.

    At the runtime level, the wrapper caller creates the correct java package from the runtime context of the tenant dynamically and calls the subroutine.

Copyright © 2020- Temenos Headquarters SA

Published on :
Monday, May 27, 2024 5:03:53 PM IST