Configure your Lookup Manager with Application Configuration

The Application Configuration is an Streams platform function that allows you to store configuration parameter of your application in the Streams console. Your application can read them at run time and it can update the values that are specified at compile time or submission time.

Before you begin

As the lookup repository uses a database as the data source, this use case requires an installed and configured database. The streams domain must run and you must be authorized to manage the streams domain and the streams instance.

About this task

Configure the Lookup Manager application to use a database by using the Application Configuration.

Procedure

  1. In the file <PathToYourApplication>/config/config.cfg, find the lm.applicationConfiguration parameter.
  2. To specify the Application Configuration name, set the parameter to the wanted value, for example: lm.applicationConfiguration=MyApplConfig.

  3. Open a linux shell terminal.

  4. To get the valid link to streams console, call following command: streamtool geturl.

  5. Copy the link.

  6. Open a browser and paste the link to the address line to open the streams console.

  7. Log in to console by using the credentials. The console opens the dashboard view.

  8. Open the Streams console as described in Creating application configuration objects to connect Streams to your device management service chapter and enter the properties to the table:

    a. Complete the same Application Configuration name in the Name as you defined for the lm.applicationConfiguration parameter, for example: MyApplConfig.

    b. To specify the data source name (DSN) of the target database, set the parameter name as the propertyName: lm.db.name.

    c. To specify the value of the data source name (DSN) of the target database, set the wanted value as the propertyValue, for example: DBName.

    e. To specify the database user, set the parameter name as the propertyName: lm.db.user.

    f. To specify the value of the database user, set the wanted value as the propertyValue, for example: dbUser.

    h. To specify the database user password, set the parameter name as the propertyName: lm.db.password.

    i. To specify the value of the database user password, set the wanted value as the propertyValue, for example: dbUserPassword

  9. Finalize the creation of the application configuration object.