Tuesday, July 21, 2009

Monitoring Messaging Bridges

try:
    mBeans=home.getMBeansByType("MessagingBridgeRuntime")
    print '---------------------- Messaging Bridge ---------------------'
    print
    for bean in mBeans:
        if server_name != bean.getObjectName().getLocation():
            continue
        print bean.getName() + " is " + str(bean.getDescription()) + " and " + str(bean.getState())
except:
    print "This server has no Messaging Bridge"

No comments: