Tuesday, July 21, 2009

Monitoring JDBC Connection pool using WLST : Betterway

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

No comments: