Matt Feifarek wrote at 2004-2-18 13:41 -0500: > ... >2) add a seemingly superfluous get_transaction().abort() call just >before the servlet is put to sleep (and before the database connection >is closed) by the app server; apparently, if you make this call (even >when you've made no changes) a side effect is precluding whatever >circumstances are leading to the real problem
It is a very good idea to always finish a request with a call to either "commit" or "abort". Otherwise, the next request can get a connection with objects in an undefined state. If it gets a different thread id (than the previous request that used this connection), a commit of this (new) transaction will not be able to make objects with "_p_changed=1" persistent (as they are registered with a different transaction). -- Dieter ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss