Versions Compared

Key

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

Working with Camel

...

and SCR

SCR stands for Service Component Runtime and is an implementation of OSGi Declarative Services specification. SCR enables any plain old Java object to expose and use OSGi services with no boilerplate code.

OSGi framework knows your object by looking at SCR descriptor files in your its bundle which are typically generated from Java annotations in your code by a plugin such as org.apache.felix:maven-scr-plugin.

...

Then implement getRouteBuilders() method which returns the Camel routes you want to run. :

 

And finally provide the default configuration with:

...