[jboss-jira] [JBoss JIRA] (AS7-4153) TS: Dynamic way to get ports of various services.

Jason Greene (JIRA) jira-events at lists.jboss.org
Wed May 9 23:54:22 EDT 2012


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

Jason Greene updated AS7-4153:
------------------------------

    Fix Version/s: 7.2.0.Alpha1
                       (was: 7.1.2.Final (EAP))

    
> TS: Dynamic way to get ports of various services.
> -------------------------------------------------
>
>                 Key: AS7-4153
>                 URL: https://issues.jboss.org/browse/AS7-4153
>             Project: Application Server 7
>          Issue Type: Sub-task
>          Components: Test Suite
>            Reporter: Ondrej Zizka
>            Assignee: Ondrej Zizka
>             Fix For: 7.2.0.Alpha1
>
>   Original Estimate: 1 day
>  Remaining Estimate: 1 day
>
> {code:java}
> private int getRecoveryManagerPort() throws IOException {
>     /*    /socket-binding-group=standard-sockets/socket-binding=txn-recovery-environment:read-attribute(name=port)  */
>     final ModelNode address = new ModelNode();
>     address.add("socket-binding-group", "standard-sockets");
>     address.add("socket-binding", "txn-recovery-environment");
>     final ModelNode operation = new ModelNode();
>     operation.get(OP).set(READ_ATTRIBUTE_OPERATION);
>     operation.get(OP_ADDR).set(address);
>     operation.get("name").set("port");
>     try {
>         return executeOperation(operation).asInt();
>     } catch (MgmtOperationException ignored) { }
>     return -1;
> }
> {code}

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