First I needed to inject a ServiceLayerDecorator to with Guice like this example project https://github.com/mgenov/injecting-request-factory
And indeed, the EntityManager must be passed as Provider<EntityManager> otherwise it is not ThreadLocal and you run into closed EntityManager exception (because the trheads make concurrent use of the EntityManager).
I got it working.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/uJznvJq9RykJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment