Hi All again, I promised to post back here on my findings, ultimately runing an OSGi framework as a Windows Service;
Well, I mamanged to run a framework using the Tanuki Software open source service wrapper (http://wrapper.tanukisoftware.org/doc/english/introduction.html). I am using the first integration method, but enver really managed to get it to launch. The wrapper did not manage to load the main launching class in the framework JAR-file, despite working on the classpath settings in the configuration ofthe wrapper. Finally, by copying the framework's JAR-file to the JVM's ext-directory it managed to load the class and everything seems to work. Not the best solution, I will try figure out how to do it properly. But for the time being we can move forward. Anybody who has similar experiences? Thanks, //Robert -----Original Message----- From: Robert Varttinen Sent: Fri 2007-03-09 08:50 To: OSGi Developer Mail List; 'OSGi Developer Mail List' Subject: RE: [osgi-dev] Launching a framework programatically Thanks Ronald, I'll check it out and see how far I get. Any discoveries will be psoted back here. In the long run we arre attempting to run a framework as Windows service... but so far we have failed miserably to get it launched. So I am trying out some basic stuff first. To explore various avenues to get it launched somehow, not from a command line. //Robert -----Original Message----- From: [EMAIL PROTECTED] on behalf of Ronald Spierenburg Sent: Thu 2007-03-08 17:38 To: 'OSGi Developer Mail List' Subject: RE: [osgi-dev] Launching a framework programatically 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 _______________________________________________ OSGi Developer Mail List [email protected] http://www2.osgi.org/mailman/listinfo/osgi-dev
