Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Weblogic Mbean over JMX

Ranadhir Nag
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We connect to a weblogic server MBean over JMX as follows:

String protocol = "t3";
Integer portInteger = Integer.valueOf(portString);
int port = portInteger.intValue();
String jndiroot = "/jndi/";
String mserver = "";
JMXServiceURL serviceURL = new JMXServiceURL(protocol, hostname, port, jndiroot + mserver);
Hashtable h = new Hashtable();

h.put(Context.SECURITY_PRINCIPAL, username);
h.put(Context.SECURITY_CREDENTIALS, password);
h.put(JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES, "");
h.put("jmx.remote.x.request.waiting.timeout", new Long(10000));

connector = JMXConnectorFactory.connect(serviceURL, h);
connection = connector.getMBeanServerConnection();

What we are confused is the port to which we should address the reqeust - the server listen port or the administration port(NOTE : not the admin server port).
We seem to be getting the details like server Name and adminportenabled attributes by listenin to the server listen port itself.

In that case,what is the administration port used for - when should we address requests to it.
I also see a note that the adminitration port is always SSL-enabled ;can be made to listen to a 't3' protocol?

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic