Skip to content

Latest commit

 

History

History

service-samples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

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