Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » OSGi does not reload previously installed bundles
OSGi does not reload previously installed bundles [message #66441] Fri, 12 May 2006 05:27 Go to next message
Eclipse UserFriend
Originally posted by: kkiran7.gmail.com

I am using 3.11 release of Equinox and I have written
some sample bundles to test.

java -jar org.eclipse.osgi.jar -console and on the
console , I install a bundle file :/C:/path/somebundle.jar.

I exit the OSGi console and re-launch again. However, I
don't see the previously installed bundle when I query
on the console.

Actually, I was trying to do the same thing programmatically,
by extending the eclipse implementation of OSGi and using
BundleContext as a starting point for all the bundle installation/
querying etc. However, I noticed that after the framework is
launched, and I query BundleContex.getBundles(), I get only
"System Bundle", although I can see my bundle in the "configuration"
folder.

Sorry if I am missing something. The last time I checked the
API, it felt as if BundleContext is the king. Please help me.
Re: OSGi does not reload previously installed bundles [message #66462 is a reply to message #66441] Fri, 12 May 2006 06:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kkiran7.gmail.com

On Fri, 12 May 2006 14:27:26 +0900, Kiran Kuppa <kkiran7@gmail.com> wrote:

Oops! I could use EclipseStarter.shutdown() to shut cleanly.
And bundles can be seen on restart.

>
> I am using 3.11 release of Equinox and I have written
> some sample bundles to test.
>
> java -jar org.eclipse.osgi.jar -console and on the
> console , I install a bundle file :/C:/path/somebundle.jar.
>
> I exit the OSGi console and re-launch again. However, I
> don't see the previously installed bundle when I query
> on the console.
>
> Actually, I was trying to do the same thing programmatically,
> by extending the eclipse implementation of OSGi and using
> BundleContext as a starting point for all the bundle installation/
> querying etc. However, I noticed that after the framework is
> launched, and I query BundleContex.getBundles(), I get only
> "System Bundle", although I can see my bundle in the "configuration"
> folder.
>
> Sorry if I am missing something. The last time I checked the
> API, it felt as if BundleContext is the king. Please help me.



--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
OSGi does not reload previously installed bundles [message #73865 is a reply to message #66462] Sun, 01 October 2006 12:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: user.domain.invalid

I have the same problem. My installed bundles are not reloaded when I
restart OSGi within the console.
Does anybody know this problem ?


Kiran Kuppa schrieb:

> On Fri, 12 May 2006 14:27:26 +0900, Kiran Kuppa <kkiran7@gmail.com> wrote:
>
> Oops! I could use EclipseStarter.shutdown() to shut cleanly.
> And bundles can be seen on restart.
>
>>
>> I am using 3.11 release of Equinox and I have written
>> some sample bundles to test.
>>
>> java -jar org.eclipse.osgi.jar -console and on the
>> console , I install a bundle file :/C:/path/somebundle.jar.
>>
>> I exit the OSGi console and re-launch again. However, I
>> don't see the previously installed bundle when I query
>> on the console.
>>
>> Actually, I was trying to do the same thing programmatically,
>> by extending the eclipse implementation of OSGi and using
>> BundleContext as a starting point for all the bundle installation/
>> querying etc. However, I noticed that after the framework is
>> launched, and I query BundleContex.getBundles(), I get only
>> "System Bundle", although I can see my bundle in the "configuration"
>> folder.
>>
>> Sorry if I am missing something. The last time I checked the
>> API, it felt as if BundleContext is the king. Please help me.
>
>
>
>
Re: OSGi does not reload previously installed bundles [message #73957 is a reply to message #73865] Wed, 04 October 2006 15:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alex_blewitt.yahoo.com

If you do 'exit', it translates into a System.exit() and the state of the bundles are not preserved. If you do a shutdown, it shuts the system down cleanly and the state of bundles will be preserved.

Alex.
Re: OSGi does not reload previously installed bundles [message #75377 is a reply to message #73957] Tue, 24 October 2006 18:34 Go to previous messageGo to next message
shean chang is currently offline shean changFriend
Messages: 11
Registered: July 2009
Junior Member
I am using the Equinox as the OSGi framework ONLY and I saw the same problem
in my environment. After re-launching Equinox it went to framework start
level "6" (I did not set Start Level Service to this start level instead I
set it to 10 before I shut down) and sometime it will stay at 6 even
thought I changed it by setting the start level on the service level service
to 10 again and sometime it will tell me the start level is 10 (by asking
the start level service) but several of my bundles that have start level
less than 10 did not get started.

"Alex Blewitt" <alex_blewitt@yahoo.com> wrote in message
news:24954096.1159976410900.JavaMail.root@cp1.javalobby.org...
> If you do 'exit', it translates into a System.exit() and the state of the
bundles are not preserved. If you do a shutdown, it shuts the system down
cleanly and the state of bundles will be preserved.
>
> Alex.
Re: OSGi does not reload previously installed bundles [message #75459 is a reply to message #75377] Tue, 24 October 2006 19:51 Go to previous message
Eclipse UserFriend
Originally posted by: alex_blewitt.yahoo.com

The default start level goes up to 6 when starting. Any bundles with a start priority higher than that won't be started automatically. If you call bundle.start() to explicitly bring the bundle up, then next time around when you re-start the framework, the bundle will remain in the started state (since it's explicitly been started in a previous session).

If you want to bring a bundle up manually, but don't want it to be started next time around, you have to fudge it by performing a bundle lookup for a file that you know exists in the bundle (e.g. the activator class name).

Alex.
Previous Topic:Difference between dependency and import
Next Topic:How to use the registry with straight osgi?
Goto Forum:
  


Current Time: Fri Apr 26 22:37:48 GMT 2024

Powered by FUDForum. Page generated in 0.03349 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top