Re: [appengine-java] Setting Namespace for an entire Request

2011-05-14 Thread Aswath Satrasala
Namespace-api is set normally in a Servlet Filter, which is normally the beginning point for most application HttpRequests. This means, there is a request coming in, it is serviced by a single-thread. Namespace-api is threadsafe and the namespace is put in the threadlocal, and hence, the same

[appengine-java] Setting Namespace for an entire Request

2011-05-13 Thread mpire
Hi! I'm trying to use the Namespace-API to build a multi-tenant app. Therefore i have defined a filter that sets the Namespace for each request regarding to the User making the request. However, if there's a new Request before the current request finishes its datastore-operation, the namespace