]
Ian Springer resolved EMBJOPR-28.
---------------------------------
Fix Version/s: 1.1
Resolution: Done
Assignee: Ian Springer
Done - Jopr r44.
if the call to redeploy() during an EAR/WAR update fails, the EAR/WAR
will not be discovered by the subsequent runtime scan, and the Resource will disappear
from inventory
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Key: EMBJOPR-28
URL:
https://jira.jboss.org/jira/browse/EMBJOPR-28
Project: Embedded Jopr
Issue Type: Bug
Components: Plugin
Affects Versions: 1.0
Reporter: Ian Springer
Assignee: Ian Springer
Fix For: 1.1
Original Estimate: 2 hours
Remaining Estimate: 2 hours
I think the most robust thing to do would be:
1) Backup the original war to filename.war.rej first thing using File.rename()
2) Then write the new file and call deploy().
3) If deploy() fails, rename the rej file back to the original name and then call
deploy() once again. This 2nd call to deploy() should always succeed, but if it fails,
inform the user that in addition to the update failing, rollback to the original war
failed.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: