db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Mahler <thm...@web.de>
Subject Re: Do we really need LoadedObjectsRegistry?
Date Thu, 13 Nov 2003 06:45:26 GMT
I never really got the point of the LoadedObjectsRegistry.
If no one has a good explanation it, we should get rid of it asap.

- Thomas

Armin Waibel wrote:
> Hi all,
> 
> while try to fix an odmg test case I
> stumble across LoadedObjectRegistry (LOR)used
> in the odmg-api.
> A comment in this class says:
> 
> <snip>
> * This is a helper class which registers all objects loaded
>  * from database. It is used by ODMG layer to determine the state of
>  * objects: if an object was not loaded from database then it is new.
>  * Note: objects remain registered even after they are deleted. This
>  * is necessary to prevent creation of deleted objects by another
>  * thread, see <a 
> href="http://archives.apache.org/eyebrowse/ReadMsg?listId=106&msgNo=1382">this<a>

> 
>  * for details.
>  *
> </snip>
> 
> I read (is this the same message?)
> http://nagoya.apache.org/eyebrowse/ReadMsg?listName=ojb-user@db.apache.org&msgNo=1382

> 
> 
> and found
> 
> http://nagoya.apache.org/eyebrowse/ReadMsg?listName=ojb-user@db.apache.org&msgNo=1453

> 
> 
> so LoadedObjectRegistry was not needed to solve this problem.
> 
> <snip>
>  * is necessary to prevent creation of deleted objects by another
>  * thread
> </snip>
> I think this problem couldn't be solved by LoadedObjectRegistry.
> If an application server is used all objects will be serialized
> and we never will find the "same" object in LOR.
> Or in an clustered environment this will not work too, because
> LOR is not a distributed service.
> 
> 
> But if I comment out LOR the test case will be fixed.
> 
> Any arguments against removing this service?
> 
> regards,
> Armin
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-dev-help@db.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message