Client code that is used by other components to interface with the Program Managment service.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Welcome to Program Management Client (PM Client)

The Program Management Component is responsible for configuration management and UI custom branding. The Program Management Client allow other applications to interface with the Program Management Component in order to retrieve bootstrap initialization parameters and to interrogate tenancy-related information.


This project is licensed under the AIR Open Source License v1.0.

Getting Involved

We would be happy to receive feedback on its capabilities, problems, or future enhancements:

  • For general questions or discussions, please use the Forum.
  • Use the Issues link to file bugs or enhancement requests.
  • Feel free to Fork this project and develop your changes!

Client Modules

There are three modules that make up the client:

  1. The Client Interfaces module contains the interface classes for the client, AOP advice and point cuts, bootstrap initialization
  2. The Null Client module is a client implementation that sends all messages to the local logging subsystem (SLF4J)
  3. The Integrated Client sends all messages to the advertised REST endpoints from the REST module

In order to use one of the client implementations:

  1. Add the Maven dependencies to the POM of the project that is using Program Management.

  1. Add a context initializer class name to the web.xml
  1. Within the file system of the deployment (local file system if running locally or within tomcat file directories), create a configuration folder structure as follows:
example: /my-app-config/progman/
  1. Within the deepest folder ('/progman/'), place a file named '' with the following contents:
#security props
oauth.access.url={the URL of OAuth2 access token provider}{Client ID for program management client, can be shared amongst all client users or application/consumer specific values}
pm.oauth.client.secret={Password for program management client, can be shared amongst all client users or application/consumer specific values}

working example:
  1. Add environment variables to application server startup

      • From earlier example: -DSB11_CONFIG_DIR="/my-app-config/"
      • Use progman.client.impl.integration to use the fully integrated client
      • Use progman.client.impl.null to use the null client
    • -Dprogman.baseUri=http://localhost:8089/
      • This URI is the base URI for where the Program Management REST module is deployed
    • -Dprogman.locator=tib,dev[,overlay];
      • The locator variable describes which combinations of name and environment (with optional overlay) should be loaded from Program Management. For example: "component1-urls,dev" would look up the name component1-urls for the dev environment at the configured REST endpoint. Multiple lookups can be performed by using a semi-colon to delimit the pairs (or triplets with overlay): "component1-urls,dev;component1-other,dev".

    All four environment variables are required.

  2. Before attempting to start the application that integrates with Program Management, be sure that the name/environment configuration parameters are configured in the Program Management UI.

  3. The reason that the OAuth2 credentials are contained in the file and are stored in the file system, instead of the Program Management application itself, is because the OAuth2 credentials are required during application startup before dependency injection can occur, and so that the consumer application can then begin securely retrieving the rest of the properties stored in a Program Management configuration.


These are the steps that should be taken in order to build all of the Program Management Client related artifacts.


  • Mongo 2.0 or higher
  • Tomcat 6 or higher
  • Maven (mvn) version 3.X or higher installed
  • Java 7
  • Access to sb11-shared-build repository
  • Access to sb11-shared-code repository
  • Access to sb11-rest-api-generator repository

Build order

  • sb11-shared-build
  • sb11-shared-code
  • sb11-rest-api-generator
  • sb11-program-management-client


Program Management Client has a number of direct dependencies that are necessary for it to function. These dependencies are already built into the POM files.

Compile Time Dependencies

  • Apache Commons IO
  • Apache Commons Beanutils
  • Jackson Datatype Joda
  • Google Guava
  • Hibernate Validator
  • Apache Commons File Upload
  • Jasypt
  • SB11 Shared Code
    • Logback
    • SLF4J
    • JCL over SLF4J
    • Spring Core
    • Spring Beans
    • Spring Data MongoDb
    • Mongo Data Driver
    • Spring Context
    • Spring WebMVC
    • Spring Web
    • Spring Aspects
    • AspectJ RT
    • AspectJ Weaver
    • Javax Inject
    • Apache HttpClient
    • JSTL API
    • Apache Commons Lang
    • Joda Time
    • Jackson Core
    • Jackson Annotations
    • Jackson Databind

Test Dependencies

  • Spring Test
  • Hamcrest
  • JUnit 4
  • Podam
  • Log4J over SLF4J
  • Mockito

Runtime Dependencies

  • Servlet API
  • Persistence API