[jboss-jira] [JBoss JIRA] (WFCORE-533) Add blocking option to reload command for standalone server
Brian Stansberry (JIRA)
issues at jboss.org
Thu Sep 17 11:59:00 EDT 2015
[ https://issues.jboss.org/browse/WFCORE-533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13110113#comment-13110113 ]
Brian Stansberry commented on WFCORE-533:
-----------------------------------------
It's not a duplicate.
The problem here is the reporter is using the WildFly maven plugin, and the "reload" command will not work there because the plugin is providing a ModelControllerClient rather than letting the CLI create its own custom impl. I believe the if/end-if aspect of the original report is really a tangent. The basic issue is there is no safe way to do a reload from within the maven plugin.
I'll update the issue title to reflect this.
I could just move this to WFMP, but the WFCORE code has an issue. The code for embedding the CLI in another app allows the embedding app to provide the MCC, but the CLI can't fully function unless it controls the type of the MCC. So we either need to disable that ability for the embedding app to provide the MCC, or we need the basic MCC contract to provide all the hooks the CLI uses, and thus get rid of the CLI's custom impl.
> 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.4.11#64026)
More information about the jboss-jira
mailing list