4 Replies Latest reply on Oct 21, 2005 12:03 PM by Amarish Khopkar

    how do you map multiple context paths to the same web app in

    Amarish Khopkar Newbie

      Hi guys,

      Does anybody know how I would map multiple context paths to a single web application inside of an ear file? For example, if my app's name is sample.war inside of the .ear file, what I would like to do is map multiple context path's, say:

      /COMPANY1/SAMPLE
      /COMPANY2/SAMPLE
      /COMPANY3/SAMPLE
      /COMPANY4/SAMPLE
      ...

      to this same .war file inside of this ear. The web module (inside of an app.xml) doesn't allow more than one root url. In addition, since it's just one application, I would prefer that each of these not have their own memory space and class loaders, but instead really just refer to the same .war file.

      Is there a way to configure the .ear, tomcat55.sar or jboss in order to achieve this?

      Amarish