|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ojb.broker.core.PersistenceBrokerFactoryBaseImpl
org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl
org.apache.ojb.broker.core.PersistenceBrokerFactorySyncImpl
Workaround for participate the PB-api in JTA transaction
by
implementing the Synchronization
interface.
This may will be deprecated when we implemented a full JCA compliant connector.
When a new PersistenceBroker
instance is created in method
#wrapBrokerWithPoolingHandle
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
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.
Nested Class Summary | |
static class |
PersistenceBrokerFactorySyncImpl.PersistenceBrokerSyncImpl
|
Constructor Summary | |
PersistenceBrokerFactorySyncImpl()
|
Method Summary | |
PersistenceBrokerInternal |
createPersistenceBroker(PBKey pbKey)
Return broker instance from pool. |
Methods inherited from class org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl |
activePersistenceBroker, getPoolConfiguration, releaseAllInstances, setPoolConfiguration, shutdown |
Methods inherited from class org.apache.ojb.broker.core.PersistenceBrokerFactoryBaseImpl |
configure, createPersistenceBroker, defaultPersistenceBroker, getDefaultKey, setDefaultKey |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PersistenceBrokerFactorySyncImpl()
Method Detail |
public PersistenceBrokerInternal createPersistenceBroker(PBKey pbKey) throws PBFactoryException
PersistenceBrokerFactoryDefaultImpl
PBKey
was not found in pool
a new pool for given
createPersistenceBroker
in interface PersistenceBrokerFactoryIF
createPersistenceBroker
in class PersistenceBrokerFactoryDefaultImpl
pbKey
-
PBFactoryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |