Hi Kostas,

as Chris wrote, you don't use the activator to install a bundle into a
framework. In the most basic setup, you use
org.osgi.framework.BundleContext.installBundle(path-to-bundle-jar) to
add a bundle to a framework; or you can use anything more clever (like
Felix File Install,
http://felix.apache.org/site/apache-felix-file-install.html).

HTH,
Premek


On 20 May 2011 07:34, Christopher Armstrong <[email protected]> wrote:
> Hi Konstantinos
>
> You shouldn't have to
> On 19/05/2011, at 22:50 PM, Konstantinos Giannoutakis wrote:
>
>> It looks like that your plugin is suitable for me...But I have one question: 
>> If I have a jar OSGi bundle file, how should I get programmatically its 
>> activator in order to add it to the Felix framework?
>
> You don't need its activator to add it to the framework. My plugin uses the 
> Eclipse Target Platform to get your bundles, and Eclipse automatically 
> registers the bundle projects in your workspace with my plugin. My plugin 
> uses a custom Felix launcher to add your target platform and workspace 
> bundles automatically to the Felix framework, and it automatically updates 
> them each time you launch the framework from your workspace (as an OSGi 
> framework).
>
> If your bundle has an activator, Felix will call it when the bundle is 
> started within the Felix container that is created from the OSGi launch 
> configuration that you put together in the Debug Configurations dialog. Its 
> just like starting up an Eclipse OSGi framework - you just need to select 
> Apache Felix as your framework and ensure that Felix is in your Eclipse 
> target platform (configured under Window->Preferences->OSGi 
> Frameworks->Target Platform IIRC).
>
> Cheers
>
> Chris
> --------
> Christopher Armstrong
> [email protected]
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>



-- 
Premek Brada (Ing et MSc, PhD)
  Lecturer in Software enginering, Webmaster
  Department of Computer Science and Engineering
  University of West Bohemia in Pilsen, CZ
  << brada at kiv.zcu.cz | www.kiv.zcu.cz/~brada/ | +420-377-63-2435 >>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to