users@glassfish.java.net

Re: Problems creating JDBC connection pool programmatically ...

From: <forums_at_java.net>
Date: Fri, 15 Jul 2011 08:58:08 -0500 (CDT)

Could you try the following:

    final JMXServiceURL url = new
JMXServiceURL("service:jmx:rmi:///jndi/rmi://" + HOST_NAME + ":" + JMX_PORT +
"/jmxrmi");

    final JMXConnector jmxConn = JMXConnectorFactory.connect(url);
    final MBeanServerConnection connection =
jmxConn.getMBeanServerConnection();
 

Then the default domain could be got from the connection using
connection.getDefaultDomain.
 


--
[Message sent by forum member 'sm157516']
View Post: http://forums.java.net/node/822399