Consuming OSGi services
You can consume OSGi services from rule and Java™ agents.
- Consuming OSGi services from a rule agent
To access an OSGi service from rules, you must create a business object model (BOM) that maps to the Java code of the service. You first create a project to contain the BOM, and then you reference the project in the rule agent. - Consuming OSGi services from a Java agent
To access an OSGi service from a Java agent, you import the packages of the service and then include the OSGi FrameworkUtil class to access this service from your code.
Parent topic: Integrating OSGi services