if (cf.getManagedConnectionFactory() != null && cf.getManagedConnectionFactory().getStatistics() != null) { StatisticsPlugin extendStats = cf.getManagedConnectionFactory().getStatistics(); extendStats.setEnabled(statsEnabled); if (extendStats.getNames().size() != 0) {
if (connectionFactories != null) { for (ConnectionFactory cf : connectionFactories) { ManagedConnectionFactory mcf = cf.getManagedConnectionFactory(); StatisticsPlugin extendStats = mcf == null ? null : mcf.getStatistics(); if (extendStats != null) {
/** * String representation * @return The string */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("ConnectionFactory@").append(Integer.toHexString(System.identityHashCode(this))); sb.append("[jndiName=").append(getJndiName()); sb.append(" connectionFactory=").append(getConnectionFactory()); sb.append(" managedConnectionFactory=").append(getManagedConnectionFactory()); sb.append(" pool=").append(getPool()); sb.append(" poolconfiguration=").append(getPoolConfiguration()); sb.append("]"); return sb.toString(); } }
if (mgtCf.getManagedConnectionFactory() != null) mgtCf.getManagedConnectionFactory(); Set<String> writeable = new HashSet<String>(); Set<String> excludeAttributes = new HashSet<String>();
if (cf.getManagedConnectionFactory() != null && cf.getManagedConnectionFactory().getStatistics() != null) { StatisticsPlugin extendStats = cf.getManagedConnectionFactory().getStatistics(); extendStats.setEnabled(statsEnabled); if (extendStats.getNames().size() != 0) {
if (connectionFactories != null) { for (ConnectionFactory cf : connectionFactories) { ManagedConnectionFactory mcf = cf.getManagedConnectionFactory(); StatisticsPlugin extendStats = mcf == null ? null : mcf.getStatistics(); if (extendStats != null) {