Sun Java System Access Manager 7.1 Developer's Guide

Using a Properties File

You can set properties in a properties file and then provide a path to it at runtime. The properties files must be in the CLASSPATH. The default properties file name is AMConfig.properties and is always read at start-up.

ProcedureTo Set Client SDK Properties in a Properties File

  1. Generate a sample AMConfig.properties by running the following command:

    make -f Makefile.clientsdk properties

    The AMConfig.properties will be present in the temp directory.

  2. Edit properties to suit your environment.


    Note –

    At runtime, if the file name is different from AMConfig, provide the file name (without the .properties extension) and path. The path should be in the CLASSPATH by declaring the JVM option:

    -Damconfig=filname