B. Blama

Greenhorn
+ Follow
since Aug 25, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by B. Blama

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-app
  • Multi-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
    11 years ago