March 12, 2014

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.

6 comments:

  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

    ReplyDelete
  2. Looks like getConfig() is deprecated and you use MXServer.getMXServer().getSystemProperties().getProperty({name}) instead.

    ReplyDelete
  3. Inspiring writings and I greatly admired what you have to say , I hope you continue to provide new ideas for us all and greetings success always for you..Keep update more information..
    best rpa training in bangalore
    rpa training in bangalore | rpa course in bangalore
    RPA training in bangalore
    rpa training in chennai
    rpa online training

    ReplyDelete
  4. Thanks for splitting your comprehension with us. It’s really useful to me & I hope it helps the people who in need of this vital information. 
    python Course in Pune
    python Course institute in Chennai
    python Training institute in Bangalore

    ReplyDelete
  5. Good Post, I am a big believer in posting comments on sites to let the blog writers know that they ve added something advantageous to the world wide web.
    AWS Training in Bangalore

    AWS Training in pune

    ReplyDelete