Logger log = Logger.getLogger(categoryName);
PrintWriter logWriter = new LoggerPluginWriter(log.getLoggerPlugin());
try {
poolingStrategy.getManagedConnectionFactory().setLogWriter(logWriter);
} catch (ResourceException re) {
log.warn("Unable to set log writer '" + logWriter + "' on " + "managed connection factory", re);
log.warn("Linked exception:", re.getLinkedException());
}
if (poolingStrategy instanceof PreFillPoolSupport) {
PreFillPoolSupport prefill = (PreFillPoolSupport) poolingStrategy;