You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Introduction

Design a Sservice Oriented Architecture seems very obvious for most of us but implies that different parameters are taken into account (layers of the application, definition of the services, granularity, dependency with libraries, infrastructure). The purpose of this tutorial is not at all to teach you on SOA but to draw your attention on points that the developer(s)/deployer(s) will be confronted during the design and release management phase.

In this first part of the OSGI tutorial, we will show you how to:

  • Create a simple service (derived from the camel-osgi example) module (interface + implementation) and package it as a bundle,
  • Create a Camel context with a small routing and package it as a separate bundle,
  • The Camel routing will use an OSGI reference to call the simple service

The second part of this tutorial will be derived from the Reporting incident tutorial and will show you a more real application (which is web based) can be re-scoped into a OSGI application.

Prerequisites

This tutorial uses:

Note: The sample project can be downloaded, see the resources section.

Step 1 : Initial Project Setup

Next, you import these projects into your favorite workspace of Eclipse.

Step 2 : Develop the interface

  • No labels