for(Resource resource : resources.getResources()){
if(resource instanceof ResourcePool){
ResourcePool pool = (ResourcePool)resource;
if(Boolean.valueOf(pool.getPing())){
PoolInfo poolInfo = ResourceUtil.getPoolInfo(pool);
CommandRunner commandRunner = commandRunnerProvider.get();
ActionReport report = actionReportProvider.get();
CommandRunner.CommandInvocation invocation =
commandRunner.getCommandInvocation("ping-connection-pool", report, kernelIdentity.getSubject());
ParameterMap params = new ParameterMap();
params.add("appname",poolInfo.getApplicationName());
params.add("modulename",poolInfo.getModuleName());
params.add("DEFAULT", poolInfo.getName());
invocation.parameters(params).execute();