TAFJ and Jboss Configuration Procedure
TAFJ and Jboss Configuration Procedure
TAFJ and Jboss Configuration Procedure
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
COMPANY.CREATE I, V
COMPANY I
Service to be run
TSA.SERVICE, I BNK/COMPANY.CREATION.SERVICE
***********************************************************************************
******************************************************************************
TAFJ Installation
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
<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 TAFJ_HOME\bin
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.
############################################################
# 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
<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.
- 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
http://localhost:9089/BrowserWeb/servlet/BrowserServlet