This repository contains samples of OSGi service
- Deploy the 2 modules on your server, one of them declare an OSGi service the other one consume it
- Activate the module
service-consumer-samples
on a site - Then call the action
response=$(curl -s -X POST http://localhost:8080/en/sites/SITEKEY.consumeOSGiService.do -H 'accept: application/json') && echo $response
Output should be something like :
{"message":"Hello Jahia! Home directory=/home/tomcat"}