Hi folks, 

I'm trying to figure out what is the best way to configure my RMI-proxy-bundles 
with a server-ULR. I have several proxy-bundles where I need to look up an 
RMI-registry: 
Registry registry = LocateRegistry.getRegistry("localhost", 1088);

But instead of providing the concrete values for host and port in each proxy 
bundle I would like to provide these properties from a central 
config.properties file. If I put these information in a Config-class I would 
have to recompile my application in case host and port values change. 

I've been also reading a lot about ConfigAdminService and MetatypeService but 
as I understand they have a different use case. I don't need to update these 
values dynamically, in my use case it would be ok to restart the application if 
host or port values change. In addition to that I don't want my services extend 
ManagedService or something similar as I do not want my services to be tightly 
coupled to OSGi. 

Any idea?

Regards,
Eugen 
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to