David,

If you are using the -clean option then this explains why the bundles
are disappearing. I recommend not using the -clean option... certainly
not as a matter of course; it should only be used when you have got a
framework into a bad state and you need to "start over".

Regards,
Neil

On Thu, Mar 4, 2010 at 12:58 PM, David Conde <[email protected]> wrote:
> Hi Neil,
>
> I meant Pax Runner really does not do, at least with my default configuration 
> options.
>
> I have not been using clean option since I am able to get data from 
> preferences service. I have tried with --ups=true option but I got no result 
> at all.
>
> Regarding my last question I was wrong when I wrote because I really meant 
> what was the most used Launcher (instead of bundle) by Equinox developers?
>
> Any way, thank you very much for your answers
>
> David
>
> -----Mensaje original-----
> De: [email protected] [mailto:[email protected]] En 
> nombre de Neil Bartlett
> Enviado el: jueves, 04 de marzo de 2010 12:58
> Para: OSGi Developer Mail List
> Asunto: Re: [osgi-dev] Osgi Launchers Question
>
> Hi David, some responses inline below.
>
> On Thu, Mar 4, 2010 at 11:43 AM, David Conde <[email protected]> wrote:
>> I know it should be so, but really it is not, at least I did not achieve it 
>> by using Pax Runner, I am new in Pax Runner and perhaps I have not already 
>> found this option but I have been looking for information about this 
>> behaviour and I did not find anything related to.
>
> No really, it is! Try launching Equinox without any kind of launcher,
> e.g. "java -jar org.eclipse.osgi.jar -console".
>
> There are only two ways for your installed bundles to disappear when
> you relaunch:
>
> a) PAX Runner may be explicitly uninstalling them with
> Bundle.uninstall(), perhaps during shutdown of the framework.
> b) The framework is being launched with the "-clean" command line
> switch, which resets the framework to a completely empty state every
> time.
>
> Unfortunately I'm not familiar enough with PAX Runner to know which of
> those might be occurring.
>
>> In my case, I had tested my application in Equinox by console, and then, in 
>> order to do it faster, I exported all my bundles into Pax Runner launcher. 
>> The problem is that I have a bundle called InstallerBundleManager which make 
>> use of BundleContext.install bundle in order to install another bundles from 
>> .jar files by programming in running time. The problem is that when I 
>> restart again Pax Runner, the bundles installed by my InstallerBundleManager 
>> bundle do not appear like installed bundles in the framework.
>>
>> Do you know another launcher to fix this by using Equinox?
>
> I do not use any kind of launcher myself, however you might want to
> take a look at Paremus' Nimble, which is substantially more
> sophisticated than PAX Runner. It is a commercial product but free for
> personal use.
>
>> What is the most used bundle for Equinox developers?
>
> Not sure if I understand this question... the OSGi Compendium JAR
> (osgi.cmpn.jar) would be my most used bundle! ;-)
>
>>
>> Thank you in advance
>>
>> David
>>
>> -----Mensaje original-----
>> De: [email protected] [mailto:[email protected]] 
>> En nombre de Neil Bartlett
>> Enviado el: jueves, 04 de marzo de 2010 12:28
>> Para: OSGi Developer Mail List
>> Asunto: Re: [osgi-dev] Osgi Launchers Question
>>
>> David,
>>
>> That is the default behaviour of OSGi: bundles remain installed and in
>> the same state across restarts of the framework. The way your
>> framework is launched should have no effect on this behaviour.
>>
>> Neil
>>
>> On Thu, Mar 4, 2010 at 11:20 AM, David Conde <[email protected]> wrote:
>>> Hi,
>>>
>>>
>>>
>>> I would like to know if there is any OSGI launcher which allow to remain
>>> installed after being shut down these bundles which were installed by
>>> programming but were not included in the installation folders of the
>>> launchers. Is there any launcher which allow me to install bundles using
>>> BundleContext and I can have these installed bundles after shut down the
>>> launcher?
>>>
>>>
>>>
>>> Thank you in advance
>>>
>>>
>>>
>>> David
>>>
>>> _______________________________________________
>>> OSGi Developer Mail List
>>> [email protected]
>>> https://mail.osgi.org/mailman/listinfo/osgi-dev
>>>
>> _______________________________________________
>> OSGi Developer Mail List
>> [email protected]
>> https://mail.osgi.org/mailman/listinfo/osgi-dev
>>
>>
>> _______________________________________________
>> OSGi Developer Mail List
>> [email protected]
>> https://mail.osgi.org/mailman/listinfo/osgi-dev
>>
>
> _______________________________________________
> OSGi Developer Mail List
> [email protected]
> https://mail.osgi.org/mailman/listinfo/osgi-dev
>
>
> _______________________________________________
> OSGi Developer Mail List
> [email protected]
> https://mail.osgi.org/mailman/listinfo/osgi-dev
>

_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to