Kristoffer,<br><br>I hit the same problem in a persistent application I am working on. My solution<br>is to define a new method, delete, that destroys the object and deletes<br>the object from the persistent storage. Just destroying the object does not
<br>delete it from persistent storage.<br><br>Instead of explicitly calling destroy on objects, I just call delete. My persistence<br>layer is snapshot based, but delete instantly deletes the persistence<br>for an object. This has the problem of a shrinking set of persisted objects
<br>between snaphots. <br><br>Have you worked with prevayler(<a href="http://www.prevayler.org">www.prevayler.org</a>)? In my java days I used this<br>for a while. I'd like to make a port of this to xotcl one day.<br><br>
Ben <br><br><div><span class="gmail_quote">On 01/02/06, <b class="gmail_sendername">Kristoffer Lawson</b> <<a href="mailto:setok@fishpool.com">setok@fishpool.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
When XOTcl exits, it seems that the [destroy] method is called on all<br>objects. The first question is whether this is wise .. possibly. The<br>problem is I would like to build a transparent layer for persistence<br>storage which could be applied to a wide range of applications. The
<br>problem naturally is that the objects in the persistence storage get<br>destroyed when the application exits :-)<br><br> / <a href="http://www.fishpool.com/~setok/">http://www.fishpool.com/~setok/</a><br><br>
_______________________________________________<br>Xotcl mailing list<br><a href="mailto:Xotcl@alice.wu-wien.ac.at">Xotcl@alice.wu-wien.ac.at</a><br><a href="http://alice.wu-wien.ac.at/mailman/listinfo/xotcl">http://alice.wu-wien.ac.at/mailman/listinfo/xotcl
</a><br></blockquote></div><br><br clear="all"><br>-- <br>Lao Tsu said:<br>When the fool learns the Way, <br> He laughs at it. <br> Yet if the fool did not laugh at it, <br> It would not be the Way. <br> Indeed, if you are seeking the Way,
<br> Listen for the laughter of fools.