"Fossies" - the Fresh Open Source Software archive

Member "ref/Services/transactional.html" (26 Jun 2014, 62920 Bytes) of archive /linux/www/grails-docs-2.4.2.zip:

Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. Alternatively you can here view or download the uninterpreted source code. That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.

(Quick Reference)



Enables automatic transaction demarcation if not set or set to true


class BookService {
    static transactional = true


By default services have automatic transaction management such as propagation and so on. By setting transactional to false you disable automatic Spring managed transaction demarcation for every method in the service. When set to the true, The propagation level of the transaction is by default set to PROPAGATION_REQUIRED.

You can also configure services using Spring's @Transactional annotation. See Declarative Transactions in the user guide for more information.