Deploying Gadgets in the repository is quite straightforward. However this is an administrator's privilege. You need to login to WSO2 Gadget Server as the administrator at (https://localhost:9443/carbon) and navigate to the registry browser.

WSO2 Gadget Server is by default shipped with some of the WSO2 Governance Registry features. By using those registry/repository, a well equipped enterprise gadget repository can be maintained.

Next you should browse to /registry/resource/system/gadgets. In the registry and at this location upload your gadget XML file as an XML resource.

Once the gadget XML is uploaded, you should navigate to the Gadget Repository in the administrators view and open the Add Gadget form (Gadget Repository → Add New Gadget),


Fill the Add New Gadgets form accordingly and for the gadgets URL, you should provide the registry URL for the resource, which is /registry/resource/system/gadgets/feedReader.xml and save the created gadget entry. Now the newly created gadget will be added to the repository, and all the users will be able to find this gadget simply by browsing the repository.
NOTE: If the Gadget XML is hosted in another Web Server, you can also add that to the repository by simply adding its HTTP:// URL as the gadget URL.
If you are a normal user and just want to test your gadget in WSO2 Gadget Server, you can host your Gadget XML in a public location and provide its HTTP URL (The XML file should be able to access via HTTP) to the portal's add-gadget by URL location.
No comments:
Post a Comment