public class PersistenceBrokerFactorySyncImpl extends PersistenceBrokerFactoryDefaultImpl
transaction by
implementing the Synchronization interface.
PersistenceBroker instance is created in method
wrapBrokerWithPoolingHandle(org.apache.ojb.broker.PersistenceBrokerInternal, org.apache.commons.pool.KeyedObjectPool)
the given PB instance is wrapped with PersistenceBrokerFactorySyncImpl.PersistenceBrokerSyncImpl before it was put to the PB-pool.
When a PB instance was requested class try to lookup the current JTA transaction in
wrapRequestedBrokerInstance(org.apache.ojb.broker.PersistenceBrokerInternal) before the pooled PB instance was wrapped with the PB handle.
If a running tx was found the PB instance was registered with the transaction using the
Synchronization interface.| Modifier and Type | Class and Description |
|---|---|
static class |
PersistenceBrokerFactorySyncImpl.PersistenceBrokerSyncImpl |
| Constructor and Description |
|---|
PersistenceBrokerFactorySyncImpl() |
| Modifier and Type | Method and Description |
|---|---|
PersistenceBrokerInternal |
createPersistenceBroker(PBKey pbKey)
Return broker instance from pool.
|
activePersistenceBroker, getPoolConfiguration, releaseAllInstances, setPoolConfiguration, shutdownconfigure, createPersistenceBroker, defaultPersistenceBroker, getDefaultKey, setDefaultKeypublic PersistenceBrokerInternal createPersistenceBroker(PBKey pbKey) throws PBFactoryException
PersistenceBrokerFactoryDefaultImplPBKey was not found in pool
a new pool for givencreatePersistenceBroker in interface PersistenceBrokerFactoryIFcreatePersistenceBroker in class PersistenceBrokerFactoryDefaultImplPBFactoryException(C) 2002 - 2005 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30