You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get org.hibernate.HibernateException: No Session found for current thread during the jobWasExecuted method of a job listener.
The documentation clearly states that "Jobs are configured by default to have Hibernate Session bounded to thread each time job is executed."
However, it is not clear if the same is true for the listeners of a job. If the job listeners don't have a Hibernate session by default, is there a way to add / open a session for certain listeners? I mean, other than wrapping the listener code in DomainClass.withTransaction { ... }
I get
org.hibernate.HibernateException: No Session found for current thread
during thejobWasExecuted
method of a job listener.The documentation clearly states that "Jobs are configured by default to have Hibernate Session bounded to thread each time job is executed."
However, it is not clear if the same is true for the listeners of a job. If the job listeners don't have a Hibernate session by default, is there a way to add / open a session for certain listeners? I mean, other than wrapping the listener code in
DomainClass.withTransaction { ... }
Grails version: 3.3.5
Quartz plugin version: 2.0.13
The text was updated successfully, but these errors were encountered: