Bug 1045311
Summary: | org.jboss.remoting-jmx.timeout is not used when connecting the first time | ||
---|---|---|---|
Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Osamu Nagano <onagano> |
Component: | JMX | Assignee: | Darran Lofthouse <darran.lofthouse> |
Status: | CLOSED DUPLICATE | QA Contact: | |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.1.1 | CC: | darran.lofthouse, hrupp |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-07-08 13:31:11 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Osamu Nagano
2013-12-20 06:46:05 UTC
Sample JMX client can be found in https://access.redhat.com/site/solutions/125473 like this. ~~~ import javax.management.MBeanServerConnection; import javax.management.remote.JMXConnector; import javax.management.remote.JMXConnectorFactory; import javax.management.remote.JMXServiceURL; public class JMXExample { public static void main(String[] args) throws Exception { String host = "remote-host"; int port = 9999; // management-native port String urlString ="service:jmx:remoting-jmx://" + host + ":" + port; System.out.println("\n\n\t**** urlString: "+urlString);; JMXServiceURL serviceURL = new JMXServiceURL(urlString); JMXConnector jmxConnector = JMXConnectorFactory.connect(serviceURL, null); MBeanServerConnection connection = jmxConnector.getMBeanServerConnection(); //Invoke on the JBoss AS MBean server int count = connection.getMBeanCount(); System.out.println(count); jmxConnector.close(); } } ~~~ Where "JMXConnectorFactory.connect(serviceURL, null)" passing null, it should be a configuration map like "org.jboss.remoting-jmx.timeout":"1000". *** This bug has been marked as a duplicate of bug 1113242 *** |