views:

374

answers:

1

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/i5

A: 

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]]]])

Shreeni