[jboss-jira] [JBoss JIRA] (AS7-3281) Add a "force" attribute to CLI add operations to allow existing resources to be transparently recreated

Robert Reimann (JIRA) jira-events at lists.jboss.org
Thu Jan 12 02:01:21 EST 2012


Robert Reimann created AS7-3281:
-----------------------------------

             Summary: Add a "force" attribute to CLI add operations to allow existing resources to be transparently recreated
                 Key: AS7-3281
                 URL: https://issues.jboss.org/browse/AS7-3281
             Project: Application Server 7
          Issue Type: Feature Request
          Components: CLI
    Affects Versions: 7.1.0.CR1b
            Reporter: Robert Reimann
            Assignee: Alexey Loubyansky


To allow for repeatable CLI script executions (e.g. in case of a missconfiguration like wrong IP or DB-Password provided) conditional logic is required to prevent "Duplicate resource" failures. These logic is typically contained in a wrapper script (shell script or another scripting language).

Pseudocode:
{code}
exists = test if the resource to be (re-)added already exists
if (exists) remove resource
add resource
{code}

Adding a "force" or "override" attribute to the add operation (which recreates the resources transparently if necessary) would remove the need for conditional logic and additional wrapper scripts.
 
A simple example, assuming that the logger to be added already exists:
{code}
/subsystem=logging/logger=com.arjuna:add(level=TRACE, force=true)
{code}

In such a case the existing logger should be removed and recreated with the new properties provided. 


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list