On Feb 1, 2010, at 2:11 AM, Asier Aranbarri Beldarrain wrote:

What I need is to export the .jar, put the .properties in the same folder as the .jar, and load from there.

This strikes me as a dangerous practice. You should have the initial location of your properties file be somewhere other than the bowels of the OSGi container. To be sure, OSGi does provide a private file space for each your bundles but then I think we would end up w/ a chicken and the egg situation; how does one initially get the properties file in the first place?

Why not just use a "well known" data root to pull your properties from and have that root configured in a Systems property:

-Ddata.root=C:\myData\data

Use this System property to construct your properties file reference.

Regards,
Alan

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

Reply via email to