[embjopr-issues] [JBoss JIRA] Created: (EMBJOPR-28) 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

Ian Springer (JIRA) jira-events at lists.jboss.org
Thu Nov 6 15:27:39 EST 2008


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


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: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the embjopr-issues mailing list