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:
Post a Comment