OSGi Basics

OSGi Basics

Your first guided steps into the OSGi world. Learn what OSGi is about and build your first Declarative Services.

What You'll Learn

If you don't have experience with OSGi yet, but are about to develop on Liferay DXP or customize it, this is the lesson for you.

This lesson is deliberately short, introducing the basic vocabulary and tools of OSGi so that you have just enough knowledge to start using OSGi in the context of Liferay. We dive more into OSGi details and background during the Back-End Development course.

Instructor

Olaf Kock

Since joining Liferay in 2010, Olaf has been busy with consulting, training and setting customers and the community on track. Being one of the top posters on Liferay's community blog, he likes sharing his experiences and expertise.

You can occasionally meet Olaf at European trainings or community meetups, and also at events like Liferay Devcon. He's the host of the (typically sold out) Unconference, held at Devcon since 2013 and for the first time at NAS in 2018.

Course Overview60-90 minutes

  • Getting Started

    Say hello to your trainer and learn about the scope of this training course

  • Benefits
  • Breaking Up the Monolith 5 min
  • How OSGi Solves JAR Hell 3 min
  • Dependencies
  • Bringing Along Dependencies
  • Tools
  • Easy, Powerful Tools to Develop in OSGi 2 min
  • Services

    including the setup of your development environment

  • Everything Is a Service 3 min
  • Exercise: Build Your First Service
  • Priority
  • Resolving Multiple Implementations of a Service 1 min
  • Exercise: Create Multiple Service Implementations
  • Initialization
  • Customizing Initialization 4 min
  • Versioning
  • Backwards Compatibility 8 min
  • The Tricky Order of Semantic Versions 1 min
  • Time-Saving Tips
  • Things to Watch Out For 4 min
  • Next Steps
  • Moving Forward

What You'll Learn

If you don't have experience with OSGi yet, but are about to develop on Liferay DXP or customize it, this is the lesson for you.

This lesson is deliberately short, introducing the basic vocabulary and tools of OSGi so that you have just enough knowledge to start using OSGi in the context of Liferay. We dive more into OSGi details and background during the Back-End Development course.

Instructor

Olaf Kock

Since joining Liferay in 2010, Olaf has been busy with consulting, training and setting customers and the community on track. Being one of the top posters on Liferay's community blog, he likes sharing his experiences and expertise.

You can occasionally meet Olaf at European trainings or community meetups, and also at events like Liferay Devcon. He's the host of the (typically sold out) Unconference, held at Devcon since 2013 and for the first time at NAS in 2018.

Course Overview60-90 minutes

  • Getting Started

    Say hello to your trainer and learn about the scope of this training course

  • Benefits
  • Breaking Up the Monolith 5 min
  • How OSGi Solves JAR Hell 3 min
  • Dependencies
  • Bringing Along Dependencies
  • Tools
  • Easy, Powerful Tools to Develop in OSGi 2 min
  • Services

    including the setup of your development environment

  • Everything Is a Service 3 min
  • Exercise: Build Your First Service
  • Priority
  • Resolving Multiple Implementations of a Service 1 min
  • Exercise: Create Multiple Service Implementations
  • Initialization
  • Customizing Initialization 4 min
  • Versioning
  • Backwards Compatibility 8 min
  • The Tricky Order of Semantic Versions 1 min
  • Time-Saving Tips
  • Things to Watch Out For 4 min
  • Next Steps
  • Moving Forward