Deleting JMS messages using WLST
do the following to achieve this
# set WLS environment$ ORACLE_HOME/wlserver/server/bin/./setWLSenv.sh# launch WLST $ ORACLE_HOME/oracle_common/common/bin/./wlst.sh
$ java weblogic.WLSTwls:/offline>connect('weblogic','weblogic1','t3://192.0.0.123:7001') wls:/domain/serverConfig>serverRuntime() wls:/domain/serverRuntime>cd('JMSRuntime') wls:/domain/serverRuntime/JMSRuntime>:ls() wls:/domain/serverRuntime/JMSRuntime>:cd('server.jms') wls:/domain/serverRuntime/JMSRuntime/server.jms> cd ('JMSServers') wls:/domain/serverRuntime/JMSRuntime/server.jms/JMSServers>cd (JMSServer-1')
** wls:/WLST_domain/serverRuntime>cd('JMSRuntime/managed1_wls.jms/JMSServers/JMSServer-1/Destinations/SystemModule-0!com/fixstream/benifits/dr/out/dq') wls:/WLST_domain/serverRuntime/JMSRuntime/managed1_wls.jms/JMSServers/JMSServer-0/Destinations/SystemModule-0!Queue-0> ls() wls:/WLST_domain/serverRuntime/JMSRuntime/managed1_wls.jms/JMSServers/JMSServer4/Destinations/SystemModule-0!Queue-0> cmo.deleteMessages('') **
do the necessary changes and that's it.
App Un-deployment using WLST
# set WLS environment$ ORACLE_HOME/wlserver/server/bin/./setWLSenv.sh# launch WLST $ ORACLE_HOME/oracle_common/common/bin/./wlst.sh
$ java weblogic.WLSTwls:/offline>connect('weblogic','weblogic1','t3://192.0.0.123:7001') wls:/domain/serverConfig>listApplications() wls:/domain/serverConfig>edit() wls:/domain/serverConfig/startEdit() wls:/domain/serverConfig/stopApplication('myapp') wls:/domain/serverConfig/undeploy('myapp') wls:/domain/serverConfig/save()
wls:/domain/serverConfig/activate()
wls:/domain/serverConfig/exit()
# use below command to Deploy application
deploy('myapp','/app/deliv/myapp.war',targets='managed1_mydom01')
--
No comments:
Post a Comment