title: WSO2 ESB rewrites WSO2 Registry values on startup
body: <p>I have the current installations of WSO2 ESB and WSO2 Registry (both 4.5.0).</p>
  
  <p>Registry sharing is made exactly by the step by step <a href="http://ajithvblogs.blogspot.com/2012/09/create-jdbc-mount-to-wso2-governance.html" rel="nofollow">instruction</a></p>
  
  <p>Then the usecase is the following:</p>
  
  <p>1) add a zip containing WSDL/Schemas to the Governance Registry. Added them I case see in the registry bowser:</p>
  
  <pre><code>_system/governance/trunk
                          /endpoints
                          /schemas
                          /services
                          /wsdls
  </code></pre>
  
  <p>With all WSDL/Schemas/Endpoints/Services relevand to the just added WSDL package.</p>
  
  <p>2) start WSO2 ESB ithe the following registry configuration:</p>
  
  <pre><code>&lt;dbConfig name="wso2registry_mounted"&gt;
      &lt;dataSource&gt;jdbc/WSO2CarbonDB_GREG&lt;/dataSource&gt;
  &lt;/dbConfig&gt;
  
  &lt;remoteInstance url="https:localhost:9445/registry"&gt;
      &lt;id&gt;wso2_registry_mounted&lt;/id&gt;
      &lt;dbConfig&gt;wso2registry_mounted&lt;/dbConfig&gt;
      &lt;readOnly&gt;false&lt;/readOnly&gt;
      &lt;enableCache&gt;true&lt;/enableCache&gt;
      &lt;registryRoot&gt;/&lt;/registryRoot&gt;
  &lt;/remoteInstance&gt;
  
  &lt;mount overwrite="true" path="/_system/config"&gt;
      &lt;instanceId&gt;wso2_registry_mounted&lt;/instanceId&gt;
      &lt;targetPath&gt;/_system/nodes&lt;/targetPath&gt;
  &lt;/mount&gt;
  
  &lt;mount overwrite="true" path="/_system/governance"&gt;
      &lt;instanceId&gt;wso2_registry_mounted&lt;/instanceId&gt;
      &lt;targetPath&gt;/_system/governance&lt;/targetPath&gt;
  &lt;/mount&gt;
  </code></pre>
  
  <p>3) Check registry browser both on ESB and Governance Registry. At least schemas folder content is gone overwritten by ESB.</p>
  
  <p>Could anyone advise on how can I force ESB not to overwrite initial Registry entries. Marking mounted registry as readOnly=true - doesn't help.</p>
  
  <p>Thanks,
  Vladimir.</p>