0 Replies Latest reply on Jul 19, 2014 7:03 AM by malcomtom

    Multitenancy via URL filtering in seam 2

    malcomtom Newbie

      My Webapplication ist built with Seam 2.2.2 and running as a deployed .WAR on Wildfly (Jboss 8) Applicationserver. Now I would like to implement multi-tenancy support 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. For authenticating i am using Apache Shiro (maybe this url filtering can also be done via ShiroFilter)

      Relevant URLs of the Application

      WEBUI (Server Faces)

      http://192.168.0.12/MyApplication/TENANT_1/admin/configuration.seam 

      Rest-Service URL

      http://192.168.0.12/MyApplication/TENANT_1/seam/resource/rest/seachService/findAllObjects 

      My question is how could i counfigure 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, or should this be done by some seam or shiro configuration setting?

      Thanks in advance for any help

      Best regards

      Malcom