Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • The id of the bean referenced myTransform used by the Camel context has a reference to the OSGI interface demo.service.TransformService
  • How could we imagine something more simplest? We don't have to call a JNDI server with a reference or something like that. Only a reference to the service interface.

Step

...

7 : Generate the manifest and jar file

Prior to run/launch the command generating the MANIFEST file, you must modify the pom.xml file and add the following line in order to allow the OSGI bundle to import/use the services classes : demo.service

...

Run the command mvn package (= Repeat step #5).

Step 8 : Deploy the bundles

We will show you now that we can easily deploy our bundles in two OSGI servers running a different OSGI kernel:

...