It is possible to do with a lot of frameworks. For Apache Felix, see http://cwiki.apache.org/FELIX/launching-and-embedding-felix.html
For knopflerfish, you can make a String[] of arguments, just as you would use them at the command line. Then use those args like : org.knopflerfish.framework.Main.main(startArgs); Ronald Spierenburg -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Varttinen Sent: Thursday, March 08, 2007 4:35 PM To: [email protected] Subject: [osgi-dev] Launching a framework programatically Hi all, I am trying to launch a framework programatically, but does not seem to manage getting it to work. Launching from a command line is no problem, but launching it from within an application seems a bit trickier. Tried to launch the Knopflerfish framework, it seems to start, but it does not seem to read any properties. Guess I am missing some settings to be set prior to the launch. Has anybody doen something similar? Could someone please provide a pointer or two? Thanks in advance, Robert _______________________________________________ OSGi Developer Mail List [email protected] http://www2.osgi.org/mailman/listinfo/osgi-dev _______________________________________________ OSGi Developer Mail List [email protected] http://www2.osgi.org/mailman/listinfo/osgi-dev
