cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Schröder <Peter.Schroe...@freenet-ag.de>
Subject AW: AW: Out of memory exception when creating a large number of objects
Date Mon, 23 Jul 2007 14:16:15 GMT
afaik that this was a bug related to weak-references 

-----Ursprüngliche Nachricht-----
Von: Jean-Paul Le Fèvre [mailto:jean-paul.lefevre@cea.fr] 
Gesendet: Montag, 23. Juli 2007 16:05
An: user@cayenne.apache.org
Betreff: Re: AW: Out of memory exception when creating a large number of objects

On Monday 23 July 2007 15:53, Peter Schröder wrote:
> i think that this is a dataContext-issue. every commited object stays in
> the context, so you probably should create a new dataContext at some point.

Sure ! but is it a bug or a feature ?

The following methods :
ctxt.getObjectStore().unregisterNewObjects();
ctxt.getObjectStore().startTrackingNewObjects();
are meant to avoid the problem but it turns out that they likely forget 
references in some unknown places.

-- 
___________________________________________________________________

Jean-Paul Le Fèvre  * Mail : LeFevre@fonteny.org


Mime
View raw message