Implementation of RPC API for JackRabbit Oak based on Apache thrift.
- JDK 8
- Maven
- MongoDB (For Jackrabbit)
- Clone the repository, git clone git@github.com:ottogiron/jcr-oak-rpc.git
- CD to jcr-oak-rpc and run mvn clean install
The service on port 9090 by default. Go into the jcr-oak-rpc/jcr-oak-rpc-proxy-server folder an run mvn spring-boot:run that will start the thrift server.
Please Check jcr-oak-rpc-nodejs
TRoot = require('./TRootService'),
jcrOakAPI = require('jcr-oak-api');
var connection = jcrOakAPI.getConnection({
host: 'localhost',
port: 9090
});
var multiplexer = new thrift.Multiplexer(),
var rootService = multiplexer.createClient("TTreeService",TRoot,conn);
rootService.getTree('/', function(err, tree) {
connection.end();
if(err) { return handleError(res, err); }
console.log(tree);
});
Note: Example based in Node's apache thrift 1.x master branch module, 0.9.x branch doesn't support multiplexer.
###Implemented API Check Thrift services definition