• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to set context-root dynamically?

 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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>
 
reply
    Bookmark Topic Watch Topic
  • New Topic