[jboss-jira] [JBoss JIRA] (AS7-2284) Don't enable web console unless it is populated with data

Brian Stansberry (JIRA) jira-events at lists.jboss.org
Mon Apr 2 11:40:47 EDT 2012


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

Brian Stansberry commented on AS7-2284:
---------------------------------------

What clients like the Arquillian test driver do is poll until the "server-state" attribute indicates the server is started:

    public boolean isServerInRunningState() {
        try {                    
            ModelNode op = Util.getEmptyOperation(READ_ATTRIBUTE_OPERATION, PathAddress.EMPTY_ADDRESS.toModelNode());
            op.get(NAME).set("server-state");

            ModelNode rsp = client.execute(op);
            return SUCCESS.equals(rsp.get(OUTCOME).asString())
                    && !ControlledProcessState.State.STARTING.toString().equals(rsp.get(RESULT).asString())
                    && !ControlledProcessState.State.STOPPING.toString().equals(rsp.get(RESULT).asString());
        } catch (Throwable ignored) {
            return false;
        }
    }

We've been thinking about how to do a notification or service installation thing to not bring up the console until everything is ready, but that may not be there in 7.1.2, so this kind of polling may be a necessary workaround for the console.
                
> Don't enable web console unless it is populated with data
> ---------------------------------------------------------
>
>                 Key: AS7-2284
>                 URL: https://issues.jboss.org/browse/AS7-2284
>             Project: Application Server 7
>          Issue Type: Enhancement
>          Components: Domain Management
>    Affects Versions: 7.1.0.Alpha1
>            Reporter: Lukáš Petrovický
>            Assignee: Brian Stansberry
>              Labels: eap6-ux
>             Fix For: 7.1.2.Final
>
>         Attachments: before-itsstarted.png
>
>
> Try logging into the web console immediately after the server starts. What you see is... nothing. We're missing all the data - deployments, modules... Basically, the menu on the left side doesn't show anything.
> If you refresh the console a little while after that (tens of seconds later), the data are all properly there. What I propose is that, until the data are available, the console be either disabled or with some sort of "Loading, please wait..." dialog preventing users from interacting with the UI.

--
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