This content has been marked as final.
Show 2 replies
-
1. Re: BundleActivator.start() read a file
bharadwaj Mar 11, 2015 12:31 AM (in response to aaron.mcgrath.adp)If you'd like to override BunldeActivator.start(BundleContext context) and get the PID / bundle ID then
getBundle(long id)
Returns the bundle with the specified identifieString propValue = bundleContext.getProperty("your.prop.name");
-
2. Re: BundleActivator.start() read a file
aaron.mcgrath.adp Mar 11, 2015 6:09 AM (in response to bharadwaj)Thanks for your reply, although it's not exactly what I need, unless I am just mis-understanding, which is entirely possible.
I have created a properties file (my.properties) and an xml file (my.xml) which have been added to my profile.
Now when the bundle starts up I would like to read both files in.
Is this possible? I see no straight-forward way of doing this...
Thanks again.