This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ServiceLocator - issue when shared between two web app.  RSS feed

Rajasekar Elango
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

We have developed a ServiceLocator to cache home interfaces for all services.

Here is code for getRemoteHome

This ServiceLocator is packed into a jar file and added to class path of 2 web applications.
It works fine if it is called by single web app. But when other web app calls getRemoteHome(), it finds ref in cache, it prints valid value in log, but it value null after getRemoteHome() call in other web app.

What could be problem..? What is the best design to implement ServiceLocator to be used between different webapplications..?

Any Suggestion/Advice would be of great help..

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!