I am trying to create jython script that will load list of properties and will customize the server-> JVM -> custom properties.
I managed to create a script using the AdminConfig tasks, the problem is that some of the values contains non-English characters (Hebrew to be more precise), and the Jython does not managed to read them correctly
The solution was combined- The loading of the properties files was done with InputStreamReader that used UTF8 character set-
inStream = javaio.FileInputStream(propsFil)
instreader = javaio.InputStreamReader(inStream, "UTF8")
propFil = util.Properties()
propFil.load(instreader)
After that I needed to use the AdminTask instead of AdminConfig-
AdminTask.setJVMSystemProperties('[-serverName '+ server + ' -nodeName '+ node+ ' -propertyName '+ config_property +' -propertyValue ' + config_value + ' ]')
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.