This documentation is for WSO2 Governance Registry 5.1.0. View documentation for the latest release.
Skip to end of metadata
Go to start of metadata

Asset Models for ESB provide the ability to govern WSO2 ESB artifacts from a centralized Governance Registry. WSO2 Governance Registry creates corresponding governance artifacts for ESB proxy services, sequence and endpoints and synchronizes the relationship between those artifacts. To use this, there is no need to mount ESB to Governance Registry.

WSO2 Governance Registry runs a separate task internally to periodically check for updates and synchronize with WSO2 ESB.

To use ESB asset models:

  1. Start WSO2 ESB (If you run both ESB and Governance Registry in the same computer, use a different port offset value to run ESB in a different port).
  2. Copy <ESB_HOME>/repository/components/plugins/org.wso2.carbon.mediation.configadmin.stub_4.x.x.jar to <GREG_HOME>/repository/components/dropins.
  3. Download the following RXT files and add them to the <GREG_HOME>/repository/resources/rxts/ directory.
  4. Open the <GREG_HOME>/repository/conf/registry.xml file and uncomment the following and edit it appropriately.

    <!--task name="MediationTask" class="org.wso2.carbon.governance.platform.extensions.mediation.MediationArtifactPopulatorTask"> 
                <trigger cron="0/10 * * * * ?"/> 
                <property key="userName" value="admin" /> 
                <property key="password" value="admin" /> 
                <property key="serverUrl" value="https://localhost:9444/services/"/> 
                <property key="proxyArtifactKey" value="proxy" /> 
                <property key="sequenceArtifactKey" value="sequence" /> 
                <property key="endpointArtifactKey" value="esbendpoint" /> 
  5. Fill the up and running WSO2 ESB’s userName, password and serverUrl as shown above.
  6. You can give a suitable cron value to change the frequency of the task.
  7. Now when you add/update/delete a proxy service, the sequence and endpoints in ESB, along with the corresponding governance artifacts named “Proxy”, “Sequence” and “Endpoint” are populated and synchronized in the Governance Registry. 
  8. You can now login to G-Reg Management Console and view the Meta data lists.   

Adding/Editing/Deleting ESB artifacts using G-Reg is currently not supported. Instead use ESB management console or admin services to do this.

  • No labels