开发者

Set WAS Process Definition Environment Entries using Jython?

开发者 https://www.devze.com 2022-12-11 03:30 出处:网络
Is it possible to add custom Process Definition environment entry in a WebSphere Application Server using a jython script?

Is it possible to add custom Process Definition environment entry in a WebSphere Application Server using a jython script?

I see that the existing properties in the server.xml are assigned auto-generated IDs, is it possible to retrieve those prop without knowing their ID?

 <environment xmi:id="Property_1248356598212" name="<my_prop>" value="<my_value>" required="true"/>

WAS 6.1/i开发者_如何学编程5


checkout this link for configuring process definition properties using jython

some snippets that might help you

server = AdminConfig.getid('/Cell:mycell/Node:mynode/Server:server1/') processDef = AdminConfig.list('JavaProcessDef', srvid) print AdminConfig.show(processDef, 'environment')

server = AdminConfig.getid('/Cell:mycell/Node:mynode/Server:server1/') jvm = AdminConfig.list('JavaVirtualMachine', server) AdminConfig.modify(ns, [['BOOTSTRAP_ADDRESS', [['host', 'myhost'], ['port', 2810]]]])

0

精彩评论

暂无评论...
验证码 换一张
取 消