I'm unsuccessfully using WLST to modify a jmsmodule.xml file online. I have to achieve this programatically rather than using the Weblogic Console. However, I've "reco开发者_运维技巧rded" the commands while in the console. However the recorded commands when put into the online python WLST script don't work. These are the commands that fail:
cmo.setPriority(-1)
cmo.setDeliveryMode('Persistent')
cmo.setTimeToDeliver('-1')
cmo.setTimeToLive(-1)
The error that gets spit out is: AttributeError: setPriority
Any ideas? Thanks in advance.
cmo refers to the object you're currently in. Be sure that you navigate to the correct MBean using cd() commands
Better you first check the MBean containing attributes with ls() in interactive mode. For clear idea you watch the following youtube video by Jeffrey where you can record the script and updating for further use made easy...
http://www.youtube.com/watch?v=luhBaviP2uMenter link description here
精彩评论