posted 14 years ago
Assuming that by "2 web applications" you mean 2 .war files, you can drop the required ProductService implementations in respective WEB-INF folders - either in lib or classes - of each .war. If that is done, then I think these web applications will be able to use whatever implementation available to them. I think this might work because each .war will use it's own classloader. And if you want to share the interface between these two web applications, you could add META-INF alongwith Manifest file and point to a common location which holds the interface. You can try this and let us know.
-Milind