TAFJ and Jboss Configuration Procedure

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 5

CREATE A COMPANY IN t24uat2 environment with the following details

ID - ET0010070 ..... MNEMONIC - Your Name First Alphabet||Your Father Name First
Alphabet||Your G.Father Name First Alphabet ... SUB.DIVISION.CODE ....the last 4
digits from COMPNAY ID.

ID - ET0010071
ID - ET0010072
ID - ET0010073
ID - ET0010074
ID - ET0010075
ID - ET0010076
ID - ET0010077

Applications to be used Functions used

COMPANY.CREATE I, V
COMPANY I

Service to be run

TSA.SERVICE, I BNK/COMPANY.CREATION.SERVICE

***********************************************************************************
******************************************************************************
TAFJ Installation

Download the TAFJ runtime from t24dev enironment

- Create a directory in C or D called TAFJ


- Install java 1.8 on your machine(if not installed)
- Set the environment variable JAVA_HOME
- Extract the TAFJ runtime in the path Convenient for you
- Set executable permission to the setup files
- Execute the setup file Setup_TAFJ.R21.SP5.0.bat
- Enter the path for TAFJ you created before
- Enter the home directory of Eclipse(Optional) You can skip by pressing Enter
- Enter the for conf directory. just press enter to take the default by pressing y.
- Then press Enter to finish the installation of TAFJ
- Set executable permission for the files in bin directory
- Execute tVersion.bat from bin directory to check the TAFJ installed
- Copy the database dirivers from dbdrivers directory to ext directory for oracle
database
***********************************************************************************
******************************************************************************
Transact deployment

- Create a directory called T24 in the same directory to TAFJ


- Copy the bnk directory from the model bank file inside T24

TAFJ Configuration
- Copy the file tafj.properties from your TAFJ\conf directory to the same directory
- Rename the file tafj - Copy by your mnemonic used during company creation
- Open the MNEMONIC.properties file in notepad/notepad++ editor
- Set the path for your TAFJ home
tafj.home=C:\T24_R21\TAFJ
- Set the path for Policy file
temn.tafj.policy.file=C:\T24_R21\TAFJ\conf\TAFJ.Policy
- Set the path for Transact libraries
temn.tafj.directory.precompile=C:\T24_R21\T24\bnk\t24lib
- Set the pathe for
temn.tafj.directory.basic=C:\T24_R21\TAFJ\samples\basic
temn.tafj.directory.java=C:\T24_R21\TAFJ\data/tafj/java
temn.tafj.directory.classes=C:\T24_R21\TAFJ\data/tafj/classes
temn.tafj.runtime.directory.current=T24_R21\T24\bnk\UD
temn.tafj.jdbc.write.use.merge=false
temn.tafj.jdbc.write.use.merge.no.xml=false
temn.tafj.jdbc.jbase.utf8=true
temn.tafj.locking.mode=JDBC
- Set the database connection parameters
temn.tafj.jdbc.url= jdbc:oracle:thin:@<host_or_ip>:1521:t24train
temn.tafj.jdbc.driver=oracle.jdbc.driver.OracleDriver
temn.tafj.jdbc.username=t24
temn.tafj.jdbc.password=t24
***********************************************************************************
******************************************************************************
Verifying TAFJ installation
- Execute tDiag.bat from TAFJ_HOME\bin directory then the output will show
- The where TAFJ_HOME defined
- JDK version
- TAFJ version
- Details of projects under TAFJ_HOME\conf including your own project name
***********************************************************************************
******************************************************************************
Sanity Check
- Accessing the system in classic
- Execute tRun.bat file from TAFJ_HOME\bin directory
- Enter an Argument: EX if the installation is succesfull the classic user
interface will be displayed
- Login to Transact
- Kaunch any Transact Application
***********************************************************************************
******************************************************************************
Launching DBTools
- Go to TAFJ_HOME\bin path
- run tUserMgnt.bat --Add -u YourName -p YourPassword then it will create a DB user
successfuly
- Run DBTools.bat from TAFJ_HOME\bin directory and enter your username and password
created before
- DBTools console will be launched and displayed to which db your connected to.

***********************************************************************************
******************************************************************************
Jboss Configuration
***********************************************************************************
******************************************************************************
- Database driver module
- TAFJ module
- Transact module
Under this path, install the JAR libraries that are part of the module and the
module.xml file that describes the module and
the dependencies on other modules

- To install a module on JBoss EAP 7.2, create a path under the JBOSS_HOME\modules
directory
1 - Configure db drivers module
- Under JBOSS_HOME\modules directory create the below directories
com\oracle\ora18c\main
- Copy from TAFJ_HOME\appserver\jboss\jboss7eap\modules\com\oracle\ora12c\
main\module.xml file to the path JBOSS_HOME\modules\com\oracle\ora18c\main
- Copy the corresponding Oracle drivers from TAFJ_HOME\ext to the path
JBOSS_HOME\modules\com\oracle\ora18c\main
- Open the module.xml file amend the module name as below

<module xmlns="urn:jboss:module:1.1" name="com.oracle.ora18c">

<resources>
<resource-root path="ojdbc8.jar"/>
.
.
.
<!-- Insert resources here -->
</resources>
<dependencies>
<module name="javax.api"/>
<module name="javax.transaction.api"/>
<module name="javax.servlet.api" optional="true"/>
</dependencies>
</module>
2 - Configuring the TAFJ module

- The module contains the TAFJ libraries that are in the lib and ext
directories. They have a dependency on the database driver module.

- Go to JBOSS_HOME\modules\com directory and create the below


directories under it
temenos\tafj\main
- Copy the file module.xml from C:\T24_R21\TAFJ\appserver\jboss\
jboss7eap\modules\com\temenos\tafj\main to JBOSS_HOME\modules\com\temenos\tafj\
main
- Change your directory to JBOSS_HOME\modules\com\temenos\tafj\main
- Create a symbolic link to TAFJ_HOME\lib and TAFJ_HOME\ext directories
mklink /D TAFJ_HOME\lib lib
mklink /D TAFJ_HOME\ext ext
- Open the copied module.xml file in a text editor, uncomment the
database driver module dependency under the <dependencies> section according to the
database used.
-
3 - Configuring the Transact module
- The module contains the Transact JAR files and has a dependency on
the TAFJ module that you created earlier.

- Go to the path JBOSS_HOME\modules\com\temenos


- Create the below directories under it
t24\main
- Change your directory to JBOSS_HOME\modules\com\temenos\t24\main
- Create a symbolic link to TEMENOS_HOME\bnk\t24lib
mklink \D TEMENOS_HOME\bnk\t24lib lib
- Generate Transact module.xml file by running the command below

- Go to TAFJ_HOME\bin

JBossTools com.temenos.t24 TEMENOS_HOME\bnk\t24lib JBOSS_HOME\


modules\com\temenos\t24\main lib –tafjdep
- Open module.xml and verify that the TAFJ module is added as a
dependency in the <dependencies> section

4 - Starting jboss
- Go to JBOSS_HOME\standalone\configuration path
- To start the app server copy standalone-full.xml file to the name
YourMnemonic.xml file
- Change to $JBOSS_HOME/bin
- Open standalone.conf with text editor and set "JAVA_OPTS=%JAVA_OPTS%
-Dtafj.home=%TAFJ_HOME% -Dfile.encoding=UTF8"
- Start JBoss using the following command
standalone.bat -b 0.0.0.0 -bmanagement 0.0.0.0 --
serverconfig=YourMnemonic.xml
5 - Configuring the standalone full profile
- To deploy Transact on TAFJ in EAP, you must configure various
subsystems in the Transact.xml file.

- Navigate to TAFJ_HOME\appserver\jboss\jboss7eap\jboss-cli and open


T24Setup.cli
- In the Drivers section, uncomment the driver parameters according to
the database used
- Open tafj.properties file
- Provide the TAFJ_HOME, DB_URL, DB_DRIVER, DB_USER and DB_PWD
parameters

############################################################
# Path details
#
# For windows use C:/
#
TAFJ_HOME=C:/T24.R21/TAFJ
############################################################
# database details
#
#DB_URL doesn't apply for DB2 XA DRIVER
DB_URL=jdbc:oracle:thin:@10.100.11.XX:1521/t24train
DB_DRIVER=ora18c
DB_DRIVER_XA=h2
DB_USER=t24
DB_PWD=t24
#DB2 XA DRIVER in replacement of DB_URL
DB_HOST=jdbc:h2:tcp://localhost
DB_NAME=DEV
DB_PORT=7085

- To resolve the user-specific system properties in tafj.properties


that will be passed as command argument to JBoss CLI command, set the value of
resolve-parameter-values to true in $JBOSS_HOME/bin/jboss-cli.xml. Check
whether validate-operation-requests is set to true.

<validate-operation-requests>true</validate-operation-requests>
<resolve-parameter-values>true</resolve-parameter-values>
- Navigate to JBOSS_HOME\bin and run the jboss-cli command.

jboss-cli.bat --connect --file=TAFJ_HOME\appserver\jboss\


jboss7eap\jboss-cli\T24Setup.cli --properties=TAFJ_HOME\appserver\jboss\jboss7eap\
jbosscli\tafj.properties
- On successful execution, the command updates the required subsystems
in YourMnemonic.xml which start up JBoss.

The scripts will add the following to the standalone configuration


file. (Transact.xml)
System properties
Drivers
Data sources
Global modules (TAFJ and Transact)
JMS Pools
JMS Queues
- Stop the Jboss instance as the configuration of JBoss with Transact
and TAFJ is now complete
6 - Configuring and deploying Transact and TAFJ artefacts

- Navigate to TAFJ_HOME\appserver
- Copy the TAFJSpoolerPlugins.rar file to the JBOSS_HOME\standalone\
deployments directory
- Change to TAFJ_HOME\appserver\jboss\jboss7eap
- Copy TAFJJEE_EAR.ear to the JBOSS_HOME\standalone\deployments
directory
- Copy BrowserWeb.war file to the path JBOSS_HOME\standalone\
deployments
7 - Sanity check

- Starting JBoss with BrowserWeb


standalone.sh -b 0.0.0.0 -bmanagement 0.0.0.0 --server-
config=Transact.xml -Djboss.http.port=9089
8 - Accessing BrowserWeb

http://localhost:9089/BrowserWeb/servlet/BrowserServlet

You might also like