aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes ServiceLocator - issue when shared between two web app. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "ServiceLocator - issue when shared between two web app." Watch "ServiceLocator - issue when shared between two web app." New topic
Author

ServiceLocator - issue when shared between two web app.

Rajasekar Elango
Ranch Hand

Joined: Sep 13, 2004
Posts: 105
Hi,

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

Thanks,
Raja.


SCJP 1.4
 
Consider Paul's rocket mass heater.
 
subject: ServiceLocator - issue when shared between two web app.