Win a copy of Murach's MySQL this week in the JDBC and Relational Databases forum!
  • 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

WPS - Saving Context-Root on start-up for a portal

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I need to call one portal from another (IBM to JSR 168). Both Portals are in different WAR modules. I would like to save the Context-Root of the target to some common area which both portlets may reach e.g. DynaCache. However determining the context root of the target portal is my problem.
I tried using a servlet which loaded on startup but the init() is called and with access to the ServletConfig object I don't see how I can get it as such info is not available.
Ideally, I want to do something like request.getRequestURI() but first I'd have to force the doGet() to be called - not sure how this can be done. Alternatively, using MBeans, perhaps I could query the container for the context root.
My understanding is wiring is not supported for this.

So - any ideas on how I can get the Context Root of another portal?
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
can you be a bit clear....

Do you want to call a Portal from another Portal or

a Portlet from another Portlet ???
 
reply
    Bookmark Topic Watch Topic
  • New Topic