Grails synchronize execution of service method -


i trying add files (blog)post domain object. file uploader allows send multiple ajax requests 1 each file in parallel.

how can best take care of synchronization on server side?

to avoid:

could not synchronize database state session    org.hibernate.staleobjectstateexception: row updated or deleted   transaction (or unsaved-value mapping incorrect):  

i doing in grails service with:

static scope = "session" 

this didn't needed.


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -