This repository has been archived by the owner on Jan 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
TransactionRequiredException in Grails 4 #91
Comments
Workaround is to configure |
niravassar
pushed a commit
to rundeck/rundeck
that referenced
this issue
May 1, 2020
I think this is the wrong solution. After grails 3.1 services aren't transactional by default. The AsynchronousMailProcessService isn't marked as @transactional. The correct solution is to mark the service as transactional. Doing global hibernate workarounds is bad because plugins shouldn't assume a particular global setup. |
@xpusostomos you are right, it's just a quick workaround. That's why this issue is still open and unresolved. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
It seems there are missing transaction declarations - see GORM manual section 1.2.5:
The text was updated successfully, but these errors were encountered: