开发者

Set WAS Process Definition Environment Entries using Jython?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜