Read System property’s updated value in code

Read System property’s updated value in code

Pinned
Publish Date
Tags
code
Status
Published
Maximo has this these System Configuration → Platform Configuration → System Properties where many Maximo configurations are stored. You can also add your own key value pairs defined in it.
 
To Read these properties in code. There are usually two approaches.
  1. By using MXServer.getMXServer.getMxServerConfig().getProperty(name) The downside of this is that whenever a property is updated and live refreshed in Maximo. Still a server restart is needed to read the updated value in code
  1. By using MXServer.getMXServer().getProperty(name)
    1. ℹ️
      Benefits of using this is that it does not require a restart of the server to read the updated value in code. Simple Live Refresh the property and its updated value can be read in code