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

Alexey Loubyansky (JIRA) jira-events at lists.jboss.org
Tue Jul 17 09:15:07 EDT 2012


     [ https://issues.jboss.org/browse/AS7-3281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Loubyansky resolved AS7-3281.
------------------------------------

    Fix Version/s: 7.2.0.Alpha1
       Resolution: Done


Conditions are now supported in the form of try-catch-finally and if-else control flows.
https://community.jboss.org/docs/DOC-18731
https://community.jboss.org/docs/DOC-18764
                
> 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
>             Fix For: 7.2.0.Alpha1
>
>
> 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