Can we use relative path in Active Expressions ?

Document ID : KB000044566
Last Modified Date : 14/02/2018
Show Technical Document Details

Question:

Can we access to a file from a Custom Active Expression directly from the Relative Path ?

For example, Custom Active Response that has to read a string from a text file.
The text file is included into a folder named "conf". So the code java would be

String path = "conf/myconffile.txt";
BufferedReader br = new BufferedReader(new FileReader(path));

Environment:

All SiteMinder versions

Ā 

Answer:

Yes, on 32bit Windows System, you can use Relative Path as long as the file will be located in C:\Windows\system32.

If the file is located somewhere else, it's better to set the Full Path instead of the Relative Path. You can also use the environment variable defined by the SiteMinder installation : NETE_PS_ROOT this should be equal to "C:\Program Files (x86)\CA\siteminder" if the file is located within this Path.

final String value = System.getenv("NETE_PS_ROOT");