Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Bundle Activation question
Bundle Activation question [message #111473] Tue, 03 June 2008 19:48 Go to next message
Eclipse UserFriend
Originally posted by: techi_amol.yahoo.com

Hi all,

I had a doubt about bundle activation. I have been reading the sections
about lazy activation policy in osgi spec and i am a little confused.

1) What is the difference between Bundle Activation and calling
BundleActivator.start() method.
2) Does bundle activation mean loading of all classes that are there in
the bundle?
3) I was assuming that is BundleActivation policy is not set to lazy the,
on deployment the BundleActivator.start() method will be called
automatically by the framework, but it doesn't happen that way.
Re: Bundle Activation question [message #111690 is a reply to message #111473] Tue, 10 June 2008 13:47 Go to previous message
Kees Pieters is currently offline Kees PietersFriend
Messages: 24
Registered: July 2009
Junior Member
OSGI tries to start bundles automatically, so normally you do not want to be calling the BundleActivator.start(). If you do experience that bundle does not start, then this usually means that something is wrong. you can check this by entering 'ss' in your console (dos command prompt or in Eclipse) after you started the application. your bundle should be ACTIVE. If not, the entering 'diag <plugin number/name>' will normally provide additional information to what went wrong.
Lazy activation mainly has to do when there are plugin dependencies. Setting lazy-start true, will tell OSGI that the plugin should be loaded only when others need it. In your runtime configuration (or in the config.ini file when you start OSGI manually), you normally define that OSGI starts your main plugin, after which the system loads the others if needed. Lazy activation supports this.

Kees
Previous Topic:create product from equinox bundle
Next Topic:Missing constraint error when validating bundles
Goto Forum:
  


Current Time: Fri Apr 19 09:54:20 GMT 2024

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

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

Back to the top