I'm trying to archive the following:
A Tomcat 7.0 webapp with different login screens per tenant. I want to deploy the WAR only once for all tenants. I came so far:
Multi-tenant GWT web-appMulti-tenant Database by "tenant_id" column in every table"users"-table VIEW for each tenant, so that it can be configured as credential source per Context as follows
in server.xml.
I read a few times that people advise against two Contexts sharing the same docBase because of memory consumption.
So I'd guess what I need to to is the following:
Register app as context (one or many needed?)Modify web.xml in order to redirect to different login.html per tenant (which means many "<login-config>"-tags???)
Could you advise how this is done? I suppose it involves Apache URL rewrite and/or filters, but I never used these so far and would be happy to handle it with just Tomcat (no Apache).
Thank you,
Blama