public static void allPoolsRegisterInstantiator(InstantiatorAttributesHolder holder) { InstantiatorAttributesHolder[] holders = new InstantiatorAttributesHolder[1]; holders[0] = holder; for (Iterator<Pool> itr = PoolManager.getAll().values().iterator(); itr.hasNext();) { PoolImpl next = (PoolImpl) itr.next(); try { EventID eventId = InternalInstantiator.generateEventId(); if (eventId == null) { // cache must not exist, do nothing } else { RegisterInstantiatorsOp.execute(next, holders, InternalInstantiator.generateEventId()); } } catch (RuntimeException e) { logger.warn("Error registering instantiator on pool:", e); } finally { next.releaseThreadLocalConnection(); } } }
public static void allPoolsRegisterInstantiator(Instantiator instantiator) { Instantiator[] instantiators = new Instantiator[1]; instantiators[0] = instantiator; for (Iterator<Pool> itr = PoolManager.getAll().values().iterator(); itr.hasNext();) { PoolImpl next = (PoolImpl) itr.next(); try { EventID eventId = InternalInstantiator.generateEventId(); if (eventId == null) { // cache must not exist, do nothing } else { RegisterInstantiatorsOp.execute(next, instantiators, InternalInstantiator.generateEventId()); } } catch (RuntimeException e) { logger.warn("Error registering instantiator on pool:", e); } finally { next.releaseThreadLocalConnection(); } } }
return; EventID eventId = InternalInstantiator.generateEventId();