简体   繁体   English

如何使用带有非英文字符值的 wsadmin 自定义 WebSphere 的定制属性

[英]How to customize customized properties for WebSphere using wsadmin with values in non-English characters

I am trying to create jython script that will load list of properties and will customize the server-> JVM -> custom properties.我正在尝试创建将加载属性列表并自定义服务器的 jython 脚本-> JVM -> 自定义属性。

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我设法使用 AdminConfig 任务创建了一个脚本,问题是某些值包含非英文字符(更准确地说是希伯来语),并且 Jython 无法正确读取它们

The solution was combined- The loading of the properties files was done with InputStreamReader that used UTF8 character set-解决方案结合在一起-属性文件的加载是使用使用 UTF8 字符集的 InputStreamReader 完成的-

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 而不是 AdminConfig-

AdminTask.setJVMSystemProperties('[-serverName '+ server + ' -nodeName '+ node+ ' -propertyName '+ config_property +' -propertyValue ' + config_value + ' ]')

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在使用IIS WebSphere插件的WebSphere 7中使用非英语语言时,CSS不会加载500错误 - CSS Does Not Load With 500 Error When Using Non-English Language in WebSphere 7 Using IIS WebSphere Plugin 如何使用wsadmin在WAS 7上获取身份验证别名的属性 - How to get properties of Authentification Alias on WAS 7 using wsadmin IBM WebSphere:如何使用wsadmin脚本编写将应用程序映射到多个集群? - IBM WebSphere: How to map an application to multiple clusters using wsadmin scripting? 如何使用wsadmin将应用程序安装到WebSphere 7.0集群? - How to install applications to a WebSphere 7.0 cluster using wsadmin? WebSphere:list使用wsadmin命名空间绑定 - WebSphere: list Name Space Bindings using wsadmin 通过wsadmin使用集群的一个节点的WebSphere 7 - WebSphere 7 using one node of cluster by wsadmin 使用wsadmin脚本修改WebSphere 7中的默认WorkManager - Modify the default WorkManager in WebSphere 7 using a wsadmin script 在jython列表中使用变量wsadmin Websphere - using variables in a jython list wsadmin websphere WebSphere wsadmin脚本为JMS提供程序创建定制属性 - WebSphere wsadmin script to create custom properties for JMS provider 如何将使用wsadmin从websphere提取的ConfigProperties_server1.props转换为xml或json文件? - How to convert the ConfigProperties_server1.props which is extracted from websphere using wsadmin to xml or json file?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM