Search code examples
jbase

How to use environment variables in tafj.properties for standalone TAFJ


Is there a way to use environment variables in the tafj.properties setup file when running standalone Temenos TAFJ? I want to configure few things outside the tafj.properties so it can be easily changed without the modification of the tafj.properties file itself. I know that this file will pickup the TAFJ_HOME environment variable if it is initialized, but I would also like to parametrize DB connection URL, password and other things, so they are not stored as text inside tafj.properties.


Solution

  • You can specify using the command line arguments, TAFJ will accept these command line arguments.

    For example, pass variables with -D option as java command line parameters (%JAVA_OPTS% environment variable is sometimes used by scripts):

    set JAVA_OPTS=-Dtemn.tafj.jdbc.url=jdbc:oracle:thin:@localhost:1521/r18