http://www.javamonamour.org/2012/04/wlst-to-delete-jms-messages-from-queues.html
This is the "easy" one:
jmsserver='AcmeCommonJmsServer' jmsmodule='WSMTestJMSModule' jmsqueue='WSMTestJMSDQ' for i in range (1,5): connect('weblogic', 'weblogic1', 't3://acme-osbpp1ms' + str(i) + '.pippo.com:8001') serverRuntime() cd('JMSRuntime') cd('osbpp1ms' + str(i) + '.jms') cd('JMSServers') cd(jmsserver + str(i)) cd('Destinations') cd(jmsmodule + '!' + jmsserver + str(i) + '@' + jmsqueue) cmo.deleteMessages('') disconnect()
(replace values with your own parameters)
No comments:
Post a Comment