Hi All,
This is related to the issue [1].

Problem : Artifacts which deployed when adding a CApp to Governance
Registry does not remove when undeploying the  CApp.

Cause : When adding Governance Artifacts we have set of handlers which save
the resources to a calculated location. When undeploying the CApp, deployer
will remove the resource from the path specified in the CApp but since
resource located to somewhere else it fails to remove.

Solution : We are going to keep a path mapping file in config registry
(conf:carbonapps/path_mapping/app_name.xml) where it will keep the path
mappings of the resource related to a CApp.

Following is the sample content of path mapping file.

<path_mapping>
<resource
path="/_system/governance/wsdl_path/WeatherForecastService.svc.wsdl">
<target>/_system/governance/trunk/wsdls/net/restfulwebservices/www/servicecontracts/_2008/_01/WeatherForecastService.svc.wsdl</target>
</resource>
        <resource
path="/_system/governance/wsdl_path/WeatherForecastService.xsd">
<target>/_system/governance/trunk/xsds/net/restfulwebservices/www/servicecontracts/_2008/_01/WeatherForecastService.xsd</target>
</resource>
</path_mapping>

thanks
Eranda

[1]. https://wso2.org/jira/browse/REGISTRY-2102

-- 

*Eranda Sooriyabandara*Senior Software Engineer;
Integration Technologies Team;
WSO2 Inc.; http://wso2.com
Lean . Enterprise . Middleware

E-mail: eranda AT wso2.com
Mobile: +94 716 472 816
Linked-In: http://www.linkedin.com/in/erandasooriyabandara
Blog: http://emsooriyabandara.blogspot.com/
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to