Using EIK

Introduction


EIK supports nearly all Apache Karaf compatible runtimes including:

  • Apache Karaf
  • Apache ServiceMix
  • FUSE ESB

In order to use these runtimes Eclipse must be configured to use the correct OSGi Framework and then the Apache Karaf runtime must be loaded in to an Eclipse Target Platform.



Configuring the OSGi Framework


Open the Eclipse Preferences dialog and navigate to the OSGi Framework configuration page. Select "Apache Karaf Runtime on Equinox"


Locate the Apache Karaf Installation


Begin by opening the Apache Karaf perspective:

Create a new Apache Karaf Project



Give the project a name



Select the Apache Karaf installation



Apache Karaf is now available




Now, open the the Target Definition File karaf-2.2.2.target
and Set as Target Platform. Now that the target platform has
been set to your Apache Karaf installation, all bundles developed in the
workspace will be added and deployed automatically in the OSGi
Framework Launcher
.

Create an OSGi Framework Launcher


Create a new OSGi Framework launch configuration. Edit its contents to suit your needs.


Debug!


Click Debug to run your Apache Karaf installation.


Edit the Apache Karaf Project






2 comments:

  1. Hi.
    I'm running
    Eclipse IDE for Java Developers

    Version: Indigo Service Release 2
    Build id: 20120216-1857

    Web Developer Tools,
    Maven and M2E is installed.

    I've aslo RSE 3.3

    I've installed
    Eclipse Integration for Apache Karaf
    Eclipse Integration for Apache ServiceMix Kernel (and compatible) runtimes.
    JMX Integration for Apache Karaf runtimes
    Eclipse Web Tools Platform Integration for Apache Karaf


    Il prefrence pane> server the search button detect my fuseesb installation as an Karaf platform.


    I've switch to karaf perspective and add new apache karaf installation
    I've named it ans in installation directory i'v selected my service mix installation. the wizard complete name version and description by Apache Karaf 2.2.0.fuse-02-13

    on finish an error occur
    Unable load Features repository: mvn:org.apache.karaf.assemblies.features/standard/2.2.2-fuse-02-13/xml/features
    Aether Error.

    Ave-you an idea
    i'ave acces on internet and I can donwnload this featrues with my browser.

    thank for your help.
    Bye
    Sekaijin
    PS: bonjours de Paris

    ReplyDelete
  2. Thank you Stephen, This article was very useful. I started getting "The org.eclipse.osgi plug-in is missing from this configuration." error when i launch Debug. I will be thankful if you can help.

    Regards

    ReplyDelete