[jboss-jira] [JBoss JIRA] (WFCORE-1456) org.jboss.as.cli.scriptsupport.CLI prevents use of embed-server and embed-host-controller

Alexey Loubyansky (JIRA) issues at jboss.org
Mon Apr 18 06:54:00 EDT 2016


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

Alexey Loubyansky updated WFCORE-1456:
--------------------------------------
    Git Pull Request: https://github.com/wildfly/wildfly-core/pull/1501  (was: https://github.com/wildfly/wildfly-core/pull/1495)


> org.jboss.as.cli.scriptsupport.CLI prevents use of embed-server and embed-host-controller
> -----------------------------------------------------------------------------------------
>
>                 Key: WFCORE-1456
>                 URL: https://issues.jboss.org/browse/WFCORE-1456
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 2.1.0.Final
>            Reporter: Brian Stansberry
>            Assignee: Jean-Francois Denise
>
> The org.jboss.as.cli.scriptsupport.CLI will throw an exception if the user invokes the cmd method before invoking one of the connect methods. But the connect/disconnect methods are oriented toward remote connections. The result is you can't really use this class with the offline CLI.
> I'm not sure what the best fix is here. Perhaps new method(s) analogous to connect/disconnect that establish a CommandContext but don't call connectController(). Or perhaps the checkNotConnected() call in the cmd method should just be dropped, and an unconnected command context created. But then the existing connect/disconnect methods would need to be reworked to deal with the fact that an unconnected command context may be present.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list