You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by armin waibel <ar...@codeaulait.de> on 2003/02/21 16:36:32 UTC
[OJB] Issue #OJB124 modified
Issue OJB124 has just been modified by user armin
You can view the issue detail at the following URL:
<http://scarab.werken.com/scarab/issues/id/OJB124>
The following modifications were made to this issue:
Status changed from 'New' to 'Closed'
Comment: Move the mapping stuff to pool factory implementation class and do
/**
* Called before borrow object from pool.
*/
public void activateObject(Object key, Object obj) throws Exception
{
((PBState) obj).setClosed(false);
PersistenceBrokerThreadMapping.setCurrentPersistenceBroker((PBKey) key, (PersistenceBroker) obj);
}
/**
* Called before return object to pool.
*/
public void passivateObject(Object key, Object obj) throws Exception
{
PersistenceBrokerThreadMapping.unsetCurrentPersistenceBroker((PBKey) key, (PersistenceBroker) obj);
// this maybe already done before
((PBState) obj).setClosed(true);
}
Resolution set to 'Fixed'
Comment: Move the mapping stuff to pool factory implementation class and do
/**
* Called before borrow object from pool.
*/
public void activateObject(Object key, Object obj) throws Exception
{
((PBState) obj).setClosed(false);
PersistenceBrokerThreadMapping.setCurrentPersistenceBroker((PBKey) key, (PersistenceBroker) obj);
}
/**
* Called before return object to pool.
*/
public void passivateObject(Object key, Object obj) throws Exception
{
PersistenceBrokerThreadMapping.unsetCurrentPersistenceBroker((PBKey) key, (PersistenceBroker) obj);
// this maybe already done before
((PBState) obj).setClosed(true);
}