• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

How to set context-root dynamically?

 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using WebSphere 8 & RAD 9.
I need to set context-root dynamically / programatically.

For example, i have URL's with one ear file (TestEAR).
Based on the region URL will change, but it should access same AppEAR only.
www.app1.com --> AppEAR
www.app2.com--> AppEAR

Is it possible to set the context-root dynamically based on URL's

<web>
<web-uri>AppEAR.war</web-uri>
<context-root> ??? </context-root>
</web>
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!