Here is a general desc of my app:
I am running through the database of an LMS with hibernate and deleting records such as test and activity history, saved tests, users, and etc. At the present time I am just deleting the records the show a users progress on an activity.
I have zipped up the app portion of my our Java web app and included it in my classpath. I am creating POJO's by making calls to the app. This part is working fine.
My problem is that if i run my class on a database that has 500,000+ records in it my session will get closed and then my app crashes. I have added some lines to "re-open" if the session is closed but the issue still occurs at the line "contRecArr = contRecs.toArray();" of the code
By looking at my code is their something obvious that I am missing? Can you think of a better way that this class could be constructed?
Another thing i have noticed is that I can watch the logging of the program and see that records should be deleted but it does not seem like they are actually being removed from the DB until the whole class is finished. What is the best way to get around this so each transaction is processed as it happens?
Here is a link to my source code.
http://sourcepost.sytes.net/sourcepost/sourceview.aspx?source_id=29061
Thank you much for your help[/list]