I am working on converting a core java application into OSGI bundles. I searched a lot but could not find the standard or the best way to accomplish the following when the application is converted to bundles.
How to read command line arguments in OSGI bundles ( Currently the application is invoked from a script that passes arguments which is read inside the main function of one of the class that is part of the jar file)
In non - OSGI deployment we have fine tuned the GC parameters for the JVM using -X options. How to accomplish the same when it comes to OSGI ?. When I split the current application into bundles I need to have different GC tuning for different bundles. How it is done ?
In the code many places Sytem.getProperty is used to read parameters passed in -D option. How this can be done in OSGI.
It will be of great help if anyone can guide me on how I should proceed.
Thanks JK