2016-10-12 45 views

回答

1

像這樣的東西應該這樣做(Jython代碼):

ras = AdminConfig.list('J2CResourceAdapter', 'WebSphere MQ*').split(lineSeparator) 
for ra in ras: 
    propset = AdminConfig.showAttribute(ra, 'propertySet') 
    props = AdminConfig.list('J2EEResourceProperty',propset).split(lineSeparator) 
    for prop in props: 
     name = AdminConfig.showAttribute(prop, 'name') 
     if name == "reconnectionRetryInterval": 
      AdminConfig.modify(prop, '[[value "600000"]]') 
相關問題