[jboss-jira] [JBoss JIRA] (WFCORE-533) Add blocking option to reload command for standalone server

Brian Stansberry (JIRA) issues at jboss.org
Mon Aug 10 11:44:03 EDT 2015


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

Brian Stansberry commented on WFCORE-533:
-----------------------------------------

Ah, I misunderstood the comments of Feb 5. The problem Tomas reported in his comment that day is due to use of the jboss-as maven plugin to execute the commands. I didn't notice that and (stupidly, now that I think more about it) thought it was an issue with the CLI's handling of if/end-if blocks.

Looking at the current code, both in the jboss-as plugin and the wildfly plugin I'm pretty sure that problem will still exist. [~jperkins] should I open a WFMP JIRA for this? Alexey's right; better is to have built in support in ModelControllerClient itself, but if you know of a simple WFMP solution then that may be more expedient.

> Add blocking option to reload command for standalone server
> -----------------------------------------------------------
>
>                 Key: WFCORE-533
>                 URL: https://issues.jboss.org/browse/WFCORE-533
>             Project: WildFly Core
>          Issue Type: Enhancement
>          Components: CLI
>            Reporter: Tomas Rohovsky
>            Assignee: Alexey Loubyansky
>
> reload command is non-blocking which causes problems in CLI scripts. Let's take this as an example:
> {code}
> if (outcome == failed) of /subsystem=resource-adapters/resource-adapter=activemq-ra:read-resource
>         /subsystem=resource-adapters/resource-adapter=activemq-ra:add(archive=activemq-ra.rar)
>         :reload
> end-if
> {code}
> I use jboss-as-maven-plugin for its execution and sometimes I get: {{Command execution failed for command 'end-if'. if request failed: java.util.concurrent.ExecutionException: Operation failed: Channel closed}}
> This functionality has already been asked in WFLY-208, but for some reason it was implemented only for domain-related commands but not standalone-related (reload and shutdown).



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jboss-jira mailing list