[Registry-dev] Retrieving a Resource after deletion without adding
it again
Tyrell Perera
tyrell at wso2.com
Mon Mar 17 19:36:19 PDT 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi devs,
I have a scenario in the Mashup Server, where a Mashup will get
redeployed by simply doing a unix style 'touch' of the js file or
editing and saving the js file. At both times the service will be
undeployed and deployed back.
Currently we delete the Mashup from the Registry at undeployment and
'put' it back again at deployment. However, this adds un-necessary
records to the registry database by means of versions when the delta
between two deployments is '0'.
I worked out an MD5 based verification mechanism on the Mashup side to
make sure there is a delta and do a 'put' only if required. But the
problem I have right now is that there is no way to 'rollback' a
deletion in such a scenario. If there is such a thing, I can simply
rollback the deletion on the resource, when there is no delta in the js
file between two consecutive deployments.
Am I missing something here?
thanks,
Tyrell
- --
Tyrell Perera
Senior Software Engineer; WSO2, Inc.; http://www.wso2.com/
email: tyrell at wso2.com; cell: +94 77 302 2505
"Oxygenating the Web Service Platform."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFH3yqjehFdPcgGx7oRAhHuAJ0TUcqH7Y7PP3RGMOKjxCK7YPRviACfTfmg
f7UMxpYQpxXNWqtuRDxROxY=
=ooBo
-----END PGP SIGNATURE-----
More information about the Registry-dev
mailing list