The run.bat/run.sh file that is created inside the runner folder with the --executor=script option contains a command such as: java -Dosgi.install.area=equinox -cp bundles/org.eclipse.osgi_3.5.1.R35x_v20090827.jar org.eclipse.core.runtime.adaptor.EclipseStarter -console -configuration equinox %* With that command line you can lauch equinox with the configuration/installation done by pax-runner. In other words. That is the command line that pax-runner executes to start up equinox Cheers, Humberto
On Tue, Mar 9, 2010 at 3:09 PM, David Conde <dco...@citic.es> wrote: > Hi Humberto, > > > > Thank you for your answer. > > > > But if the framework is not launched , how are the bundles installed? I > mean, I need install the infraestructural bundles firstly in OSGi (so I > would use Pax Runner instead of installing one to one each bundle and start > them), but then, I would need to run with this context OSGi framework in > normal way. > > > > Thanks > > > > > > *De:* humberto.castejon.marti...@gmail.com [mailto: > humberto.castejon.marti...@gmail.com] *En nombre de *Humberto N. Castejon > Martinez > *Enviado el:* martes, 09 de marzo de 2010 14:57 > > *Para:* David Conde > *CC:* general@lists.ops4j.org > *Asunto:* Re: Option to launch OSGI framework after launching Pax Runner > > > > If you run pax-runner with the option --executor=script the osgi framework > will not be launched. Instead, a run.bat/run.sh file will be created with > the command line to launch the framework. I think this is what you want > > On Tue, Mar 9, 2010 at 2:59 PM, David Conde <dco...@citic.es> wrote: > > Hi again, > > > > Is there any way to make use of config.ini or a similar file created by Pax > Runner the first time (in this case all the infrasture bundles will be > installed and started easily and quickly) and combine with java –jar > Equinox.jar –console in order to get a second context in which persistence > is running? I mean, I tried to call >>java –jar Equinox.jar –console once > Pax Runner had created the config.ini file but there is no relation between > my OSGi launching and Pax Runner configurations file. How could I launch > OSGi (Equinox) framework with all the first installation done by Pax Runner? > > > > Is there any way to combine configuration files from Pax Runner with > Equinox launching? > > > > Thank you in advance > > > David > > > > *De:* general-boun...@lists.ops4j.org [mailto: > general-boun...@lists.ops4j.org] *En nombre de *David Conde > *Enviado el:* martes, 09 de marzo de 2010 13:55 > *Para:* 'Humberto N. Castejon Martinez' > > > *CC:* general@lists.ops4j.org > > *Asunto:* RE: Option to launch OSGI framework after launching Pax Runner > > > > Hi Humberto, > > > > Thank you very much for your answer. > > > > That is exactly what I need, the problem is that I have a low level bundles > which should not be modified since the application ,in which I am working > on, aims to be installed and executed in any OSGi platform not just Pax > Runner, for this reason I think it should be the launcher which has to solve > this problem and not the bundles, since the OSGi specification defines > keeping bundles states with each OSGi restarting. > > > > However, if I do not find any solution, I will use the yours since it is > the only one that works right. > > > > Do you know any other launcher for Equinox? > > > > Thank you > > > > Regards > > > David > > > > > > > > *De:* humberto.castejon.marti...@gmail.com [mailto: > humberto.castejon.marti...@gmail.com] *En nombre de *Humberto N. Castejon > Martinez > *Enviado el:* martes, 09 de marzo de 2010 13:28 > *Para:* David Conde > *CC:* Toni Menzel; general@lists.ops4j.org > *Asunto:* Re: Option to launch OSGI framework after launching Pax Runner > > > > Hi David! > > I am not sure if I understood correctly your problem, but from what I > understand you want to run pax-runner to start up equinox with a set of > bundles (let's call it A). Then, one or more of those bundles will install > other bundles (let's call them B). Now, if you terminate equinox and start > it again with pax-runner, you want both A + B bundles to be started. If that > is what you need, I think you can do the following (although I have not > tested it). Every time you install a bundle on the fly (i.e. using another > bundle), write a reference to that bundle in the runner/equinox/config.ini > file (in the section "Client bundles to install"). Such reference should > look like: > > reference:file:/C:/TEMP/com.springsource.slf4j.jcl_1.5.10....@3:start > > Hope this helps. > > Cheers, > > Humberto > > > > On Tue, Mar 9, 2010 at 1:22 PM, David Conde <dco...@citic.es> wrote: > > Hi Toni, > > > > I appreciate very much your help. > > > > I have tried both of them without right result. I have tried with --ups and > when I launch again Pax Runner all the bundles are installed and started by > default and any of them keep the previous state. I am using Equinox as > platform. > > > > If I type –executor=inProcess which is the option most close to my problem > I can not neither stop a bundle and the next time a close OSGI and open Pax > Runner again the bundle’s state is not keept. > > > > The problem is that I need something easy and fast to install a great set > of bundles for the first time by using Pax Runner, and then the next time I > want to use this context I would like to call another command or option > different to the Pax Runner default in which I can install new bundles and > keep them installed next time a launch OSGI. Is there any option to launch > OSGI framework after call Pax Runner in order to keep all the previous > installation? > > > > How do you face with this problem? > > > > Thank you in advance > > > > David > > > > *De:* tonit....@googlemail.com [mailto:tonit....@googlemail.com] *En > nombre de *Toni Menzel > *Enviado el:* martes, 09 de marzo de 2010 11:24 > *Para:* David Conde > *CC:* general@lists.ops4j.org > *Asunto:* Re: Option to launch OSGI framework after launching Pax Runner > > > > Hi David, > > You can make pax runner keeping its persistent state by using the --ups > (use persistent state) option. > > (look at the options overview at [1]) > > > > However, you can also defere the execution of the readily made setup (core > responsibility of pax runner) by using the --executor option. See [2]. > > > > [1] http://paxrunner.ops4j.org/display/paxrunner/Options+index and > > [2] http://paxrunner.ops4j.org/display/paxrunner/Executors > > > > HTH, > > Toni > > On Tue, Mar 9, 2010 at 11:24 AM, David Conde <dco...@citic.es> wrote: > > Hi, > > > > I have used Pax Runner that I launch the OSGI framework works fine. But if > I restart Pax Runner the Bundles do not keep their state. For example if I > run a bundle which install another bundles from the pathfile this bundles > will not appear like installed bundles the next time I restart Pax Runner. > Is there any option or any way to launch the OSGI environment created by Pax > Runner without restarting all the bundles states? I mean there is anything > to call firstly Pax Runner in order to create the initial context with all > the bundles, and then launch this OSGI Context from other side different to > Pax Runner (since Pax Runner does not keep the bundles when it restart). > > > > Any idea? > > > > I guess somebody could have a problem similar?I mean people with many > bundles should use a Launcher but I guess there will be a way to launch this > OSGI context created by the Launcher in order to keep the Bundles state. > > > > Thank you in advance > > > David > > > _______________________________________________ > general mailing list > general@lists.ops4j.org > http://lists.ops4j.org/mailman/listinfo/general > > > > > -- > Toni Menzel > Independent Software Developer > Professional Profile: http://okidokiteam.com > t...@okidokiteam.com > http://www.ops4j.org - New Energy for OSS Communities - Open > Participation Software. > > > _______________________________________________ > general mailing list > general@lists.ops4j.org > http://lists.ops4j.org/mailman/listinfo/general > > > > >
_______________________________________________ general mailing list general@lists.ops4j.org http://lists.ops4j.org/mailman/listinfo/general