Hi All,
It seems like service metatafile not deleted properly when deleting proxy
as in AbstractFilePersistenceManager. it looks *detach* nodes *instead of
deleting* is this a correct behavior..
public boolean delete(String resourceId, String xpathStr) {
ResourceFileData fileData = resourceMap.get(resourceId);
try {
if (fileData != null && fileData.isTransactionStarted()) {
OMElement sgElement = fileData.getOMElement();
AXIOMXPath xpathExpr = new AXIOMXPath(xpathStr);
OMElement el = (OMElement)
xpathExpr.selectSingleNode(sgElement);
if (el == null) {
return false;
}
if (el.getParent() == null) { //this is the root element
fileData.setOMElement(null);
} *else {*
* el.detach();*
* }*
setMetaFileModification(resourceId);
return true;
} else {
log.error("The Element specified by path not found or a
transaction isn't started yet. " +
xpathStr);
return false;
}
} catch (JaxenException e) {
log.error("Error parsing xpath string " + resourceId +
xpathStr, e);
return false;
}
}
Cheers,
Dushan Abeyruwan
Associate Tech Lead
*Integration Technologies Team*
*WSO2 Inc. http://wso2.com/ <http://wso2.com/>*
*Mobile:(+94)714408632*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev