Question

Set application specific values to .properties file of an external jar

Hi,

We are using some external jars and they have .properties config files where they are setting some environment variables like application id, the security domain can be used by those jars for outbound rest calls, and others. In that properties file they have placeholder value for security domain to be used by application (in our case Pega). So they are expecting a .properties file which overrides the value defined in external jar and it is working the same way in other applications which are not Pega but developed in Java.

My question is how do we override such environment properties like security domain from Pega with our application specific values.

Thanks,

Shivakumar Singani.

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Comments

Keep up to date on this post and subscribe to comments

April 24, 2017 - 3:18pm

build a listener which reads your property files and create node level data pages and access through pega.

April 24, 2017 - 3:52pm
  1. Add these settings as JVM args.
  2. Create a Java function to read an argument by name
  3. Use the custom function to read each argument
  4. Populate the node level DP

April 26, 2017 - 8:21pm
Response to Varun_Purohit

But how does the external jar know the jvm args we defined?

The property here is a security domain used specifically for that jar. If I set this value as jvm arg does not it affect other areas?

The external jar expecting it from a properties file.

April 25, 2017 - 12:52pm

Please let me know if you have implemented this solution