Instant OSGi Starter [Instant]

This title is available as an eBook only
Instant OSGi Starter [Instant]
eBook: $14.99
Formats: PDF, PacktLib, ePub and Mobi formats
save 15%!
Print & eBook also available on:
Learn in an Instant - Short, Fast, Focused
Table of Contents
Sample Chapters
  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results.
  • Learn what can be done with OSGi and what it can bring to your development structure
  • Build your first application and deploy to an OSGi runtime that simplifies your experience
  • Discover an uncomplicated, conversational approach to learning OSGi for building and deploying modular applications

Book Details

Language : English
eBook : 58 pages
Release Date : January 2013
ISBN : 1849519927
ISBN 13 : 9781849519922
Author(s) : Jamie Goodyear, Johan Edstrom
Topics and Technologies : All Books, Application Development, Instant, Java, Open Source

Table of Contents

Instant OSGi Starter
  • Instant OSGi Starter
    • So, what is OSGi?
      • What kind of things can you do with OSGi?
      • How can you use OSGi within your existing applications?
    • Installation
      • Step 1 – what do I need?
      • Step 2 – downloading an OSGi core
      • Step 3 – starting up an OSGi core directly
      • Step 4 – downloading Apache Karaf
        • What does using Apache Karaf and Maven provide us with?
      • Step 5 – starting Apache Karaf
      • Step 6 – obtaining the BND tool (Maven Bundle plugin)
      • Step 7 – obtaining Blueprint
      • Step 8 – obtaining Pax Exam
      • And that's it!!
    • Quick start – your first OSGi bundles
      • Step 1 – what do I need?
      • Step 2 – analyzing the producer
      • Step 3 – analyzing the consumer
      • Step 4 – testing
    • Top five features you'll want to know about
      • 1 – OSGi headers
        • Bundle-SymbolicName
        • Bundle-Version
        • Import-Package
        • Export-Package
      • 2 – OSGi life cycle
        • Installed
        • Resolved
        • Starting
        • Active
        • Updating
        • Stopping
        • Uninstalled
        • BundleActivator
      • 3 – OSGi core services
        • Service Hooks
      • 4 – OSGi Compendium Services
        • Blueprint Container
        • Configuration Admin
      • 5 – OSGI and modular patterns
        • Whiteboard pattern
        • Extender pattern
    • People and places you should get to know
      • Official sites
      • Articles and tutorials
      • Community
      • Blogs
      • Twitter

Jamie Goodyear

Jamie Goodyear is an open source advocate, Apache developer, and computer systems analyst with Savoir Technologies; he has designed, critiqued, and supported architectures for large organizations worldwide. Jamie holds a Bachelor of Science degree in Computer Science from Memorial University of Newfoundland. Jamie has worked in systems administration, software quality assurance, and senior software developer roles for businesses ranging from small startups to international corporations. He has attained committer status on Apache Karaf, ServiceMix, and Felix, and is a Project Management Committee member on Apache Karaf. He is also the co-author of the books Instant OSGi Starter and Learning Apache Karaf from Packt Publishing. Currently, he divides his time between providing high-level reviews of architectures, mentoring developers and administrators on SOA deployments, and helping to grow the Apache community.

Johan Edstrom

Johan Edstrom is an open source software evangelist, Apache developer, and seasoned architect; he has created Java architectures for large, scalable, high transaction monitoring as well as financial and open source systems. Johan is, by training, an electronics engineer with a penchant for fractal geometry. He has worked as a development lead, infrastructure manager, IT lead, and programmer, and has guided several large companies to success in the use of open source software components. Lately, he has been helping some of the world's largest networking companies and medical startups achieve high availability and scalability and dynamically adapt SOA systems. Johan divides his time between writing software, mentoring development teams, and teaching people how to use Apache ServiceMix, Camel, CXF, and ActiveMQ effectively. He is the co-author of the books Instant OSGi Starter and Learning Apache Karaf from Packt Publishing. Johan is a committer on Apache Camel and Apache ServiceMix and is a PMC member for Apache Camel.

Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


- 2 submitted: last submission 24 Oct 2013

In the Installation section, the description to install and start the bundles seem not to work. The following code works:

karaf@root> install mvn:starter/producer/1.0
Bundle ID: 70
karaf@root> install mvn:starter/consumer/1.0
Bundle ID: 71
karaf@root> list
START LEVEL 100 , List Threshold: 50
ID State Blueprint Level Name
[ 70] [Installed ] [ ] [ 80] producer (1.0.0)
[ 71] [Installed ] [ ] [ 80] consumer (1.0.0)

From here, you can start the bundles and continue the exercise.

Page: 01 | Type: Language | Date: 24 Oct 2013

However, your application needs to be architected
towards modularity, simplicity, and there-use of common resources.

Should be:

However, your application needs to be architected
towards modularity, simplicity, and the use of common resources.

Sorry, there are currently no downloads available for this title.

Frequently bought together

Instant OSGi Starter [Instant] +    Blender 3D 2.49 Architecture, Buildings, and Scenery =
50% Off
the second eBook
Price for both: €27.40

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

  • Discover the basic tenets of the Open Services Gateway initiative and modular programming
  • Deploy and manage your OSGi applications in a runtime container
  • Gain familiarity with OSGi tooling
  • Understand the Bundle as the most basic layer of OSGI modularity
  • Master the OSGi Lifecycle model for modular code
  • Gain exposure to key OSGi patterns such as Whiteboard and Extender
  • Find more information and supporting communities for OSGi developers

In Detail

OSGi is a tried and true modularity standard for Java. It has in recent years gained a lot of traction and tooling; becoming frequently used in Enterprise containers and distributed software systems.

"Instant OSGi Starter" is where you should start before beginning your first OSGi based project. You’ll be exposed to the core concepts, gain practical experience with the most important features, and learn about the basic tenets of modular code practices.

This book begins with the fundamental tools needed for building modular applications, top features with basic tenets of modular core practices and provides useful insights into resources and the community.

As this book progresses you will be able to get started programming in OSGi whilst looking at the default three layer design so the application will be architected towards modularity and simplicity.

Through exploring several tools and technologies and browsing the communities you will be able to work towards modular programming in OSGi.


Get to grips with a new technology, understand what it is and what it can do for you, and then get to work with the most important features and tasks. Using a practical approach with explanation where needed, the book will take an in depth look at what OSGi is and what it offers to Java programmers and development standards.

Who this book is for

"Instant OSGi Starter" is intended for the senior Java programmer whom will be joining OSGi based projects, or for Architects looking to broaden their exposure to OSGi as a beneficial framework and runtime software system.

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software