Read system property in a Java class

This entry is part of the Maximo Java Development series.

Here is a small piece of Java code that can be used to retrieve a system property in Java.

Properties configData = MXServer.getMXServer().getConfig();
String prop = configData.getProperty("mxe.adminEmail");

Replace mxe.adminEmail with your property.

Read system property in a Java class

4 thoughts on “Read system property in a Java class

  1. Hello,
    Sorry about posting here.
    I want to ask if someone can help me.
    I want to sort my resultset on the start center by the difference between target finish and current date.
    Thank you

Leave a Reply to Bruno Portaluri Cancel reply

Your email address will not be published. Required fields are marked *

Scroll to top