6 - 8.1 WebLogic 6 through 8.1 utilize a customized version of the JMX 1.0 RI.
They only support direct RMI access via the T3 protocol for remote MBeanServer access. IIOP access has never worked for me.
9 (Diablo) WebLogic 9 upgrades the JMX support to JMX 1.2 along with JMX Remoting 1.0.
It also adds JSR-77 support when accessed via the ManagementHome as per the spec.
Note: The MBeans have slightly different interfaces between the ManagementHome interface and the typical JSR 160 access.
Also, there are three different MBeanServers available from the remoting interface.
- Domain Runtime MBean Server - For accessing runtime information for the whole domain
- Runtime MBean Server - For accessing runtime information for the local server
- Edit MBean Server - The configuration mbeans for changing server/domain configurations
Monitoring 需要实现的功能我想会在理顺思路之后提出来,大约几个功能点,简单罗列一下:
目标是在出现性能问题时自动email该domain下面的以下相关信息
Using WebLogic Logging Services
http://e-docs.bea.com/wls/docs81/logging/index.html
Using WebLogic Server MBean Notifications and Monitors
http://e-docs.bea.com/wls/docs81/jmx/notifications.html
http://e-docs.bea.com/wls/docs81/ConsoleHelp/logging.html#LogMessageAttributes
Programming WebLogic Management Services with JMX
http://e-docs.bea.com/wls/docs81/jmx/index.html
Configuring and Managing WebLogic Server
http://e-docs.bea.com/wls/docs81/adminguide/overview.html#1065677
Using Ant Tasks to Configure a WebLogic Server Domain
Using the WebLogic Server Java Utilities
http://edocs.bea.com/wls/docs81/admin_ref/utils.html
http://edocs.bea.com/wls/docs81/adminguide/overview.html#1077198
http://edocs.bea.com/wls/docs81/adminguide/overview.html#1063549