I'm in the process of converting my application to use Spring DI, and hopefully eventually other portions of Spring. Spring makes a lot of sense, and works great for many areas of our system (with a bit of tweaking) but there is one need that I'm not yet sure of the best solution.
We have a very distributed system in a tree-like model. The root system has to talk to 500+ different systems all of which have identical (EJB) services, and each of those systems has to talk between 2 and 30 different systems, each of which has a different set of identical (RMI) services. Having static configuration for all these hosts is simply not practical. Especially, as the system can have new systems added at any time.
Today, we use a ServiceFactory that takes (essentially) the hostname and service required to get a remote service for each of theses hosts. I'm writing a new ServiceFactory that is Spring-aware. I've had two people (including Keith Donald at the NFJS Atlanta conference) suggest two different solutions to this problem, but with virtually no Spring knowledge at the time, they went right over my head.
So, what is the best way to get a remote service proxy for a dynamic host?
Thanks
David


Reply With Quote