Hi
I have created a WLST script to display all JMS topic/queues that has got message pending greater than zero. Now next step I want to display the proxy service name(s) that listens to those topics/queues.
Can anybody provide pointers on the same. It seems there are methods in Java JMX but not much material available on WLST.
Here is my existing script for getting all JMS resources for message pending count >0
import re
print "Starting the script ..."
username = 'weblogic'
password = 'welcome1'
url='t3://localhost:XXXX'
connect(username,password,url)
domainRuntime()
cd('ServerRuntimes')
servers = domainRuntimeService.getServerRuntimes();
for server in servers:
serverName=server.getName();
print '**************************************************'
print '##################### serverName: ', serverName, '########################'
print '**************************************************'
print '##### Server State #####', server.getState()
print '##### Server ListenAddress #####', server.getListenAddress()
print '##### Server ListenPort #####', server.getListenPort()
jmsRuntime = server.getJMSRuntime();
jmsServers = jmsRuntime.getJMSServers();
cServer = 'AdminServer$'
result = re.search(cServer,serverName);
if result == None:
for jmsServer in jmsServers:
jmsServerName=jmsServer.getName();
print '********************************************'
print '############## JMSserverName: ', jmsServerName, '################'
destinations = jmsServer.getDestinations();
for destination in destinations:
if destination.getMessagesPendingCount() > 0:
count=destination.getMessagesPendingCount()
dest = destination.getName()
print '.....For Queue', dest ,' the Message Pending Count : ' , count
print ''
else:
print 'Skipping search for Admin server'