• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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 ???
 
Honk if you love justice! And honk twice for tiny ads!
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic