[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] is a bundle equal to a java thread

Hello Kenny,

On Aug 26, 2006, at 18:48 , Kenny Su wrote:

I am just getting starting with OSGI and new to here.
When a bundle be started by framework, does it mean starting
a java thread or more java threads ?

No, when a bundle is started, no new thread is created.

When you create a bundle that contains a BundleActivator, the framework will invoke the start() method when your bundle is started.

It is not uncommon for a bundle to spawn a thread itself (in the start () method). Make sure you clean it up again in the stop() method.

Greetings, Marcel