开发者

Is there a comprehensive guide for Weblogic Scripting Tool (WLST)

开发者 https://www.devze.com 2022-12-21 16:56 出处:网络
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 comm

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

0

精彩评论

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