What IDE setup and workflow is used for OSGi development?

Posted by Falx on Stack Overflow See other posts from Stack Overflow or by Falx
Published on 2010-03-16T10:38:41Z Indexed on 2010/03/18 10:51 UTC
Read the original article Hit count: 343

Filed under:
|
|
|
|

I made quite a few easy OSGi test projects in Eclipse RCP. My typical workflow would always be:

  • Make 3 different projects: APIproject, Clientproject and Serverproject
  • Edit the MANIFEST.MF of APIproject to export the api package
  • Edit the MANIFEST.MF file of Clientproject and Serverproject to add the required API package
  • Choose "Run as..." > "Plugin Framework"
  • OSGi console starts in eclipse and everything seems to work

I also tried wiring things by using Declarative Services, which worked well like this too.

Now recently I wanted to try out iPOJO. The problem is that I get the feeling that I've been doing my OSGi development the wrong way.
Can it be that I should instead make 1 project en make it work like no OSGi is involved. And then afterwards, just export each package to its own bundle by means of (for instance) the BNDL tool? Should development be done in a normal Eclipse (java, not RCP) or any other java IDE for that matter?

So that's why I have these questions:

  • What IDE setup is normally used to develop OSGi with iPOJO?
  • And what is the normal workflow to be used when developing OSGi projects (maybe with iPOJO)?

© Stack Overflow or respective owner

Related posts about osgi

Related posts about ide