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)?