[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
Fri Feb 3 04:55:49 EST 2012


    [ https://issues.jboss.org/browse/AS7-3281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12663982#comment-12663982 ] 

Alexey Loubyansky commented on AS7-3281:
----------------------------------------

As I replied on the forum, the force won't be implemented (except, perhaps, for some commands). But conditions are interesting. I am leaving this issue open for conditions.
                
> 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