services and servers
Rikard Elofsson <[email protected]>
| Newsgroups | gmane.comp.java.sun.jini |
|---|---|
| Message-ID | <[email protected]> |
Hi all We run a number of Jini servers on a number of servers. The only Jini clients are other servers. To know which servers should run which services I use a smiple property file containing service names, and those services mentioned there are started on each server. My problem is that the services also are singletons so there is nothing to stop a programmer from instantiating a new server at runtime (and I dont want this). A simple solution would be for getInstance to check if the current server has the service name in its property file but this feels a bit awkward. Is there a fantastic solution to this kind of problem? Regards //Rikard -------------------------------------------------------------------------- Getting Started: http://www.jini.org/wiki/Category:Getting_Started Community Web Site: http://jini.org jini-users Archive: http://archives.java.sun.com/archives/jini-users.html Unsubscribing: email "signoff JINI-USERS" to [email protected]