[jboss-dev-forums] [JBoss AS 7 Development] - Detyped Description of the AS 7 Management Model
Stan Silvert
do-not-reply at jboss.com
Thu Aug 2 18:07:00 EDT 2012
Stan Silvert [https://community.jboss.org/people/ssilvert] commented on the document
"Detyped Description of the AS 7 Management Model"
To view all comments on this document, visit: https://community.jboss.org/docs/DOC-16317#comment-10342
--------------------------------------------------
Hi Brian,
I'm running in a servlet environment and I if I'm in domain mode I need to get the proper ModelControllerClient. Is the following always guaranteed to work for finding the host address and port of the domain controller? Is there a better way to get these values?
if (isDomainMode) {
InetAddress domainAddress = InetAddress.getByName(System.getProperty("jboss.domain.master.address"));
int domainPort = Integer.parseInt(System.getProperty("jboss.domain.master.port", "9999"));
domainDmrClient = ModelControllerClient.Factory.create(domainAddress, domainPort);
}
--------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120802/6410a50e/attachment.html
More information about the jboss-dev-forums
mailing list