Platform Framework
R24 AMR | Min(s) read

Modifying the Standalone Context

This section shows you how to modify the standalone context using CLI command and predefined XML context.

To start JBoss,

  1. Copy and rename the existing configuration file. That is, rename standalone-full.xml to T24.xml.
  2. Start JBoss with the following command:

    %JBOSS_HOME%\ bin\standalone.bat --server-config=T24.xml

Modifying the Standalone Context with CLI Command

You can modify the standalone context with CLI command using the following procedure.

  1. Modify the %TAFJ_HOME%\appserver\jboss\jboss7eap\jboss-cli\tafj.properties file.
    ############################################################
    					# Path details
    					#
    					TAFJ_HOME=[TAFJ root folder]
    					############################################################
    					# database details
    					#
    					#DB_URL doesn't apply for DB2 XA DRIVER
    					DB_URL=[url]
    					DB_DRIVER=[h2,ora12c,db2jdbc,sqljdbc]
    					DB_DRIVER_XA=[h2,ora12cXA,db2jdbc,sqljdbc]
    					DB_USER=[user]
    					DB_PWD=[password]
    					#DB2 XA DRIVER in replacement of DB_URL
    					DB_HOST=[hostname]
    					DB_NAME=[instance name]
    					DB_PORT=[port]
    				

    For example, if you are using an H2 database.

    ############################################################
    					# Path details
    					#
    					TAFJ_HOME=D:\Temenos\Reference\Temenos\TAFJ
    					############################################################
    					# database details
    					#
    					DB_URL=jdbc:h2:tcp://localhost/T24
    					DB_DRIVER=h2
    					DB_USER=mbtafj
    					DB_PWD=mbtafj
    			
  2. In JBoss, modify the following section of the %JBOSS_HOME%\bin\jboss-cli.xml file.
    <!-- whether to resolve system properties specified as command argument or operation parameter values in the CLI VM before sending the operation requests to the controller -->
        <resolve-parameter-values>true</resolve-parameter-values>
    
  3. Execute the jboss-cli command.
    D:\Temenos\Reference\3rdParty\as\jBoss\jboss-eap-7\bin> jBoss-cli.bat --connect --file=%TAFJ_HOME%\appserver\jboss\jboss7eap\jboss-cli\T24Setup.cli --properties= %TAFJ_HOME%\appserver\jboss\jboss7eap\jboss-cli\tafj.properties

Modifying the Standalone Context with Predefined XML Context

This section does not cover the class loading mechanism in JBoss EAP 7. It is recommend that you refer to the following documentation to understand how the libraries are getting loaded and dependencies are managed:

https://docs.jboss.org/author/display/AS7/Class+Loading+in+AS7

Copyright © 2020- Temenos Headquarters SA

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