[jboss-jira] [JBoss JIRA] (AS7-6306) Validate composite operation steps just before executing them

John Doyle (JIRA) jira-events at lists.jboss.org
Fri Mar 1 13:46:56 EST 2013


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

John Doyle commented on AS7-6306:
---------------------------------

It's not clear to me that the possible solution is desirable.  What if V2 fails?  Do we rollback?
                
> Validate composite operation steps just before executing them
> -------------------------------------------------------------
>
>                 Key: AS7-6306
>                 URL: https://issues.jboss.org/browse/AS7-6306
>             Project: Application Server 7
>          Issue Type: Enhancement
>          Components: Domain Management
>            Reporter: Brian Stansberry
>            Assignee: Brian Stansberry
>
> Say we have a composite operation with 2 steps:
> 1) /extension=org.jboss.as.messaging:add
> 2) /subsystem=messaging:add
> This will fail:
> Failed to execute batch: JBAS014739: No handler for add at address
> [("subsystem" => "messaging")] 
> This fails because at the time of validation the /subsystem=messaging:add is not valid.
> To illustrate, the execution order is
> Validate 1-2
> 1
> 2
> A possible solution is to convert this to the following:
> V1
> 1
> V2 (works now because 1 has registered the subsystem API)
> 2
> I think that should work but it's a very complex area, particularly in a managed domain, so it's not at all certain this would prove feasible. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list