Monday, February 9, 2015

Add, Modify resources in WSO2 Governance Registry using Jaggery

The Following piece of code shows how to add a resource(file) to wso2 governance registry and Modify its content.
The quickest (I guess)  way of setting up the environment is creating a jaggery app in wso2 application server.
Download the application server and unzip it in your installs location.
Create a directory in wso2as-<version>/repository/deployment/server/jaggeryapps/
For example reg-test, which is our project name. Inside the directory create the following index.jag

Start the application server by running 'sh wso2as-<version>/bin/wso2server.sh'
Go to the management console https://localhost:9443/carbon/
In the  application list view you'll see your project name as a jaggery application click on the Go To URL.
On the first time you'll get printed an exception and a resource file will be created under /_system/governance/sen/




No comments:

Post a Comment