-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Hibernate for large result set of database
PostPosted: Sun Oct 02, 2005 2:28 pm 
Newbie

Joined: Sun Oct 02, 2005 2:18 pm
Posts: 1
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp


When the result set we get by the session (of hibernate for each query ) through database is very large then the java.lang.outofmemory exception is generated.

Is it necessary to close() all the sessions generated for each query? I use in my java code many queries to generate result set and then convert it to XML data. I do close the sessionFactory at the end of the program..

is this exception due to the session only or related to JVM?? Can any one pls. tell me wat to do when large data is retrieved from database to generate XMLs.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.