...
To convert a project into a bundle that you will be able to deploy into an OSGI server, a couple of things/steps must be done :
1) Declare the project in the maven pom.xml file as of type <packaging>bundle</packaging>,
2) Add the maven felix plugin who will generate the MANIFEST.MF file,
3) Identify the packages to be imported/exported and version,
4) Register Identify and register OSGI services when they are used by another bundle.
...
Code Block |
---|
<Export-Package> org.apache.camel.example.reportincident, '=META-INF.wsdl' </Export-Package> |
Routing/Mediation service
The routing/mediation between services/bundles will be created using Spring DSL languageNow that we have transformed our current project in bundles, it is time to design the routing and web parts of the application.
Links
- Part 1 : simple example
- Part 2a : real example, architecture, project setup, database creation
- Part 2b : transform projects in bundles
- Part 2c : add routing, web and deployment
...