• 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..

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!