google app engine - Use URL part to create multi tenant AppEngine application -


i'm trying different ways of implement multi tenant appengine web restful interface. 1 of them use part of url tenant name. problem i'm using jersey jax-rs implementation restful interface , url such /tenant1/res1 first parsed something take /tenant1 part, set namespace tenant1 , pass rest of url jerseys' servlet regular handling.

the something maybe either servletfilter or servlet or can't think of.

how can implement such thing? possible problems of such implementation?

thank you, ido.

i using restlet. namespace uniquely identifies customer user belongs to.

the first url fragment contains namespace. verify namespace in restlet authenticator (basically filter) , when authenticated user not belong given namespace/customer refuse proceed.

i use primary key of customer namespace. has added advantage valid namespace/customer can (mem-)cached, , refuse calls containing invalid namespaces.

very happy setup , no problems encountered.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -