Hi all,
I am developing a web application and I wanna learn which is more effective way,if someone help, I ll be very thank. What is the best way? 1.open a hibernate session when client connected and getcurrentsession when needed. 2.open a hibernate session, make the job, close the session whenever needed.(ofcourse I need to close session after page rendered).
I used 1. way but I got lots of problem about object refreshing or updating. I couldnt solve. If I use 2.way all problems gone... Which is the best approach? What do u suggest me? Thanks...
|