mercredi 13 mai 2015

context-root for sub context

I have multiple war files in my ear. Each war file corresponds to a particular version. This is packaged structure:

TestServiceEAR
          ServiceOneWAR  -->  http://host:port/test/1.0
          ServiceTwoWAR  -->  http://host:port//test/2.0.

I want to target ServiceOneWAR as http://host:port/test/1.0 and ServiceTwoWAR as http://host:port/test/2.0. I tried to set the context-roots in TestServiceEAR/EARContent/META-INF/application.xml as /test/1.0 and /test/2.0, but that does not work.

Please suggest if this can be achieved in Websphere application server. I do not have access to a web server in my organization.

Aucun commentaire:

Enregistrer un commentaire