the life cycle of a request context?

26 views
Skip to first unread message

Elhanan

unread,
Jun 26, 2011, 2:38:10 PM6/26/11
to Google Web Toolkit
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?

meaning can the implementation of a request context be statefull?

Elhanan

unread,
Jun 26, 2011, 2:38:10 PM6/26/11
to Google Web Toolkit

Thomas Broyer

unread,
Jun 27, 2011, 8:12:47 AM6/27/11
to google-we...@googlegroups.com


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:
Reply all
Reply to author
Forward
0 new messages