How to get started with OSGi
You understand the benefits of OSGi technology so where do you start?
- If you are a Java developer and want to do some hands on work (Hello World anyone?), then the next section will link to the many introductory tutorials that are available on the web.
- If you have any questions, there is an OSGi developer forum you can use to ask any question about OSGi technology. This forum is closely watched by many OSGi experts. You can use this list also to participate in discussions about the current specification
- If you are interested to know more about the technology, then visit one of the conferences where there are OSGi related presentations. Probably the most intense conference on OSGi technology is OSGi DevCon that is combined with EclipseCon. However, there are many other conferences with OSGi speakers, so we have prepared a web page with upcoming conferences for you.
- If you are looking for the specification, then go to the specifications page.
- If you are considering using the OSGi technology in projects, then it is advisable to get some help from the outset. We have prepared a training page for you.
- If you see business opportunities in OSGi and want to discuss these with the OSGi Alliance, do not hesitate to contact us.
|Building Modular Cloud Apps with OSGi||Paul Bakker, Bert Ertman|
|OSGi in Action: Creating Modular Applications in Java||Richard S. Hall, Karl Pauls, Stuart McCulloch, David Savage|
|OSGi and Equinox: Creating Highly Modular Java Systems||Jeff McAffer, Paul VanderLei, Simon Archer|
|OSGi in Depth||Alexandre de Castro Alves|
|Enterprise OSGi in Action||Holly Cummins, Timothy Ward|
The OSGi Alliance delivers specifications, not implementations. The advantage is huge because you can then pick from many implementations. Since setting up an OSGi framework is different in each implementation, we link you to different tutorials on the web that show how to develop bundles for OSGi using different open source frameworks.
The following sections detail different tutorials centered around implementations. However, most tutorials are quite OSGi centric, the only real issue is how to get the framework started and what shell is used. However, it should be quite easy to take a tutorial from one framework and show it on another.
With Apache Felix
Apache Felix is derived from the first open source implementation of OSGi: Oscar. The site has quite a lot of educational material and excellent documentation.
- Felix Tutorials – A large number of tutorials from simple concepts to very advanced.
- Neil Bartlett’s book – Neil is working on an OSGi book and has some very interesting tutorial material. He uses Felix as the example framework in his book.
With Eclipse Equinox
Eclipse Equinox is the framework that underlies the Eclipse IDE. It is a very popular framework because it is well integrated with the IDE, which can also be used to develop bundles.
- EclipseCon Tutorials – A tutorial given by Thomas Watson and Peter Kriens at EclipseCon 2006. [Note: Tutorial content has been moved to GitHub]
- The Server Side: OSGi for Beginners – A hello world tutorial.
- Javaworld: OSGi tutorial – A beginners tutorial.
- Glyn Normington’s Hello World – Probably the smallest (but complete) Hello World on OSGi.
- Neil Bartlett’s getting started Neil Bartlett wrote a Getting Started series on EclipseZone that uses Equinox.
- OSGi development with Eclipse Equinox – Tutorial Lars Vogel’s tutorials about using OSGi with Equinox.
- Basic OSGi Tutorial [PDF] – Complete tutorial that introduces OSGi technology.
- Basic Services Tutorial – Introduction to services.
- aQute’s Snippets – A collection of OSGi code snippets.
For further educational material, see the Tutorials page.
More Information Sources
- The Javadoc of the OSGi API
- Download the specification PDFs
- OSGi in different industries and markets
- Other Resources