I'm kinda new to Java web development and I wonder if I'm implementing my 
application correctly.

I'm building an application which should be accessible on 2 different paths:
/app1/*
/app2/*

Both apps connect to the same Servlets because both apps have the same 
functionality.
The only difference is that they handle different data.

On both paths, I put a filter with an init-param, so I can name the 
namespaces dynamically in my web.xml:
/app1/* => namespacefilter init-param with init-value: namespace-for-app1
/app2/* => namespacefilter init-param with init-value: namespace-for-app2

In this filter's init(FilterConfig filterConfig) method, I use the 
'com.google.appengine.api.NamespaceManager' to set the 'namespace-for-app1' 
or 'namespace-for-app2' namespace.

So if I'm correct, the web server should have initialised 2 filter-instances 
at startup ?
All requests to /app1/* should run in namespace with name 
'namespace-for-app1' and never in 'namespace-for-app2', right?
Requests to /app1/* could never return data out of 'namespace-for-app2' (and 
reverse) ?

Thnx putting my mind at rest!

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/gtTuTPGZzEcJ.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to