Monday, June 27, 2011

Re: the life cycle of a request context?



On Sunday, June 26, 2011 8:38:10 PM UTC+2, Elhanan wrote:
it's just occured to me, that aside from the requestFactories on
method of creating requestContextes i have no way of handling their
resources, i mean assume that each service locator whould inject an
Entity Manager instance into the context, how would i close such an
entity manager once i'm done with it?

Do you mean RequestContexts (on the client-side) or how your requests (made with them) are processed on the server side?

For you EntityManager-s on the server, you should manage their lifecycle in a servlet filter.
See:

--
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/-/jchCO3jbu-QJ.
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