File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Weblogic Mbean over JMX Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Weblogic Mbean over JMX" Watch "Weblogic Mbean over JMX" New topic
Author

Weblogic Mbean over JMX

Ranadhir Nag
Ranch Hand

Joined: Mar 09, 2006
Posts: 138
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 = "weblogic.management.mbeanservers.runtime";
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, "weblogic.management.remote");
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?

 
 
subject: Weblogic Mbean over JMX
 
Similar Threads
JMX Question about managing multiple JVMs
JMX Remote Connection vs Local Connection
JMX: javax.management.InstanceNotFoundException
Suspending/Pausing a MDB's Consumption Programmatically
MBean question