Showing posts with label WLST. Show all posts
Showing posts with label WLST. Show all posts

04 December 2018

Deleting JMS messages via WLST

At time you will see that your environment ends up with n numbers of messages getting piled up, and it is not always a good option to remove the Filestore, instead another option is to purge/delete the messages from queues.

do the follow to achieve this:

set WLS environment
$ORACLE_HOME/wlserver/server/bin/./setWLSenv.sh
launch WLST
$ORACLE_HOME/oracle_common/common/bin/./wlst.sh
or
java weblogic.WLST

wls:/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/managed13_seprwls11.jms/JMSServers/JMSServer-13/Destinations/SystemModule-0!com/fixstream/benifits/dr/out/dq')
wls:/WLST_domain/serverRuntime/JMSRuntime/managed13_seprwls11.jms/JMSServers/JMSServer-0/Destinations/SystemModule-0!Queue-0> ls()
wls:/WLST_domain/serverRuntime/JMSRuntime/managed13_seprwls11.jms/JMSServers/JMSServer4/Destinations/SystemModule-0!Queue-0> cmo.deleteMessages('')
**

do the necessary changes and that's it..

Br