[jboss-jira] [JBoss JIRA] (WFLY-646) TS: Dynamic way to get ports of various services.
Jason Greene (JIRA)
jira-events at lists.jboss.org
Tue Apr 23 15:45:10 EDT 2013
[ https://issues.jboss.org/browse/WFLY-646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason Greene moved AS7-4153 to WFLY-646:
----------------------------------------
Project: WildFly (was: Application Server 7)
Key: WFLY-646 (was: AS7-4153)
Component/s: (was: Test Suite)
Fix Version/s: (was: 8.0.0.Alpha1)
> TS: Dynamic way to get ports of various services.
> -------------------------------------------------
>
> Key: WFLY-646
> URL: https://issues.jboss.org/browse/WFLY-646
> Project: WildFly
> Issue Type: Sub-task
> Reporter: Ondrej Zizka
> Assignee: Ondrej Zizka
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list