0 Replies Latest reply on Jul 4, 2014 3:33 PM by malcomtom

    Using Seam for Multi-tenancy via URL filtering

    malcomtom Newbie

      My Webapplication ist built with Seam 2.2.2 and running as a deployed .WAR. Now I would like to seperate between tenants via URL filtering.

      I thought that this could be done by configuration in components.xml or web.xml by adding some Filtering. a logical "subpath" could be used to separate between the differenct Tenants e.g. TENANT_1, TENANT_2,... TENANT_X.

      Relevant URLs of the Application

      WEBUI (Server Faces)

      The current Filter is configured in this way:


          <filter-name>Seam Filter</filter-name>




      but should handle urls like




      Rest-Service URL

      the current filter is configured in this way:


          <servlet-name>Seam Resource Servlet</servlet-name>



      but should handle urls like




      My question is how could i configure a filter that "ignores" the "TENANT_XXXXX" - part of the Url so that i could determine the wanted tenant id?

      Is this a question that could be done by a Custom Servlet Filter, maybe there is a wildcard or regular expression needed for the Filter



      Thank you very much in advance for any hint.

      Best regards