We are building a multi-tenant application and want to use the
NamespaceManager to distinguish between tenants on the basis of server-
name. So for example inphina.bookmyhours.com would be a different
tenant than te-con.bookmyhours.com

we are currently using NamespaceFilter with code similar to

if (NamespaceManager.get() == null) {
                        switch (strategy) {
                        case SERVER_NAME: {
                                logger.info("The namespace for the request is: 
" +
request.getServerName());
                                NamespaceManager.set(request.getServerName());
                                if(seedDataSetup.setSeedData()) {
                                        
adminAccountValidator.updateAdminPassword();
                                }
                                break;
                        }

What we observed is that we always fall into the condition of
NamespaceManager.get() == null and hence the code has to set
NamespaceManager.set(request.getServerName()); again. Is it possible
to retain this setting at a session level. For all our users logging
in from inphina.bookmyhours.com, they would remain to be within the
same tenant.

>From the current implementation, it looks like the NamespaceManager
has a request scope. Comments/Suggestions?

Regards | Vikas
www.inphina.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to