Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 549 Bytes

File metadata and controls

17 lines (13 loc) · 549 Bytes

Jahia OSGi Service Samples

This repository contains samples of OSGi service

How to test it

  • 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"}