Search code examples
javamulesystem-properties

How to pass System.getProperty("skipIndexing") value to a Java Server while starting?


We are using Mule Server but this question is generally for all server.

In constructor we have following property named skipindexing.

if (!Boolean.parseBoolean(System.getProperty("skipIndexing"))) {
            //searchIndexer.doIndexing(propertyIndexing, threadsToLoadObjects, threadsForSubsequentFetching);
         }

Every time i need to comment this code to run on server because i do not know how to pass this skipIndexing property on runtime.

Could anyone suggest how to pass this value as false?


Solution

  • Set property in mule/conf/wrapper.conf