hibernate-session

Hibernate: Difference between session.get and session.load

From the API, I could see it has something to do with proxy. But I couldn't find a lot of information on proxy and do not understand the difference between calling session.get and session.load. Could someone please explain or direct me to a reference page? Thank you!! ...

Hibernate: ThreadLocalSessionContext: Already session bound on call to bind()

When I try to use the ThreadLocalSessionContext in the following way: Session hsession = HibernateUtils.getSession(); ThreadLocalSessionContext.bind(hsession); // do stuff hsession.close(); I do this for every single Struts Action. Is there something I am doing wrong, causing me to get the following error? [ThreadLocalSessionContext]...

Grails Quartz Job has no Hibernate session after upgrade, causing LazyInitializationException

I've upgraded a Grails 1.0.4 application to 1.1.1. After upgrading, I'm repeatedly getting Exceptions when executing my Quartz jobs (using Quartz plugin 0.4.1). The plugin is used to manually schedule jobs using Simple and Cron Triggers via a service (paraphrased code below): class SchedulerService implements InitializingBean { stat...

Spring Webflow in Grails keeping plenty of hibernate sessions open

Hi, I have an Internet app running on Grails 1.1.2 and it integrates Spring WebFlow mechanism. The problem is that there are some bots ignoring robots.txt and are entering the flow quite often. Because second step of the flow needs some human intelligence, the bot leaves open flow after the first step. This causes a lot of open flows ...

How to I bind a Hibernate Session to a thread in Grails?

I'm writing a multi-threaded application in Grails and the additional threads need access to GORM/Hibernate. When they try to access GORM I get the error "org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here". OK fair enough, can someone guide me ...