Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved


Chapter 5 Advanced Topics : Using a Properties File to Encapsulate Locator String Components

Using a Properties File to Encapsulate Locator String Components
Locator strings are included in an applications properties file in the tibco.configurl and tibco.repourl fields. If, however, you do not want to expose the complete locator string, for example, to protect your passwords, you can instead point to a urlFile as part of the locator string:
 
   tibcr@default:userName=myName:urlFile=abc
Any :name=value url option to a utility tool can be used as a property name/value pair in the property file. The name/value pairs in the property file are appended to the url string. Note that this option is designed for command line utilities and is not available through deployment using the TIBCO Administrator GUI.
Defining a URL
Suppose you want to define the following url.
 
   tibcr@default:userName=myName:password=myPassword
You can define the url using the myPropertiesFile as follows.
 
   tibcr@default:userName=myName:urlFile=myPropertiesFile
Then provide the password in myPropertiesFile.Obfuscate the file using the obfuscate tool in TIBCO_HOME/tra/version/bin.
Property Precedence
If the same name/value pair appears in both url string and property file, the name/value pair in the url string takes precedence. You can overwrite the name/value pair in property file with the value directly given in url string.
For example, if you have the following:
 
   tibcr@default:userName=myName:urlFile=myPropertiesFile
and password=myName is defined in myPropertiesFile. The final url string is
 
   tibcr@default:userName=myName:password=myPassword

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved