Hello:

Is it possible to develop the Configuration Class as one separate bundle?

Thanks
Fernado


-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of [email protected]
Sent: 2010年8月13日 0:00
To: [email protected]
Subject: osgi-dev Digest, Vol 46, Issue 3

Send osgi-dev mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://mail.osgi.org/mailman/listinfo/osgi-dev
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of osgi-dev digest..."


Today's Topics:

   1. How to configure proxy bundles with server properties
      (Eugen Reiswich)


----------------------------------------------------------------------

Message: 1
Date: Thu, 12 Aug 2010 16:06:26 +0200
From: Eugen Reiswich <[email protected]>
Subject: [osgi-dev] How to configure proxy bundles with server
        properties
To: OSGi Developer Mail List <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset="us-ascii"

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 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://mail.osgi.org/pipermail/osgi-dev/attachments/20100812/321fd710/attachment-0001.html

------------------------------

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

End of osgi-dev Digest, Vol 46, Issue 3
***************************************

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

Reply via email to