Skip to content

can not support transaction #13

@maplye

Description

@maplye
event('mailRegistration', user, [fork:false]).waitFor()

@grails.events.Listener(proxySupport=true)
def mailRegistration(User user){
    def u = Config.get(2)
    u.val = "1"
    u.save()
    log.debug "listen the mailRegistration event"
    log.debug user
    throw new SxspException("send mail error")
 }

I used grails 2.3.7, and the Config id=2 val value changed to 1. the transaction don't worked done.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions