Wednesday, October 14, 2015

Jython: simple script to update RFH header in all the queues

nodeid=AdminConfig.getid("/Node:node01")
for qname in AdminTask.listWMQQueues(nodeid).split():
AdminTask.modifyWMQQueue(qname, '[-persistence APP -priority APP -expiry APP -ccsid 1208 -useNativeEncoding true -integerEncoding Normal -decimalEncoding Normal -floatingPointEncoding IEEENormal -useRFH2 true -sendAsync QDEF -readAhead QDEF -readAheadClose DELIVERALL -messageBody UNSPECIFIED ]')
AdminConfig.save()

No comments: