Home Page Icon
Home Page
Table of Contents for
II. JMX in the J2EE Platform
Close
II. JMX in the J2EE Platform
by Juha Lindfors
JMX: Managing J2EE with Java™ Management Extensions
Copyright
Dedication
About the Authors
Acknowledgments
Tell Us What You Think!
Introduction
What is JMX?
Why JMX for J2EE?
Part I: Java Management Extensions Specification
Part II: JMX in the J2EE Platform
I. Java Management Extensions Specification
1. Getting Started
MBean Component Types
Writing Your First MBean
Management Interface Declaration
Implementing the MBean
Deploying the HelloMBean
Deployment with Sun JMX Reference Implementation
Deployment with Tivoli JMX Implementation
Summary
2. Architecture
History
Overview
Instrumentation Level
Agent Level
Invocation Mechanism
Distributed Services Level
Summary
3. Standard MBeans
MBean Definition
Implementing Standard MBeans
Standard MBean Attributes
Management Operations
Exceptions in the Management Interface
Standard MBean Example
User Client
Inheritance Patterns
MBean Notification Mechanism
Notification
NotificationBroadcaster and NotificationFilter
Broadcaster MBean Example
NotificationListener
Notification Listener Example
Attribute Change Notifications
Attribute Change Notification Example
Summary
4. Dynamic MBeans
DynamicMBean Interface
GetAttribute and GetAttributes
SetAttribute and SetAttributes
MBean Metadata Classes
MBeanInfo
MBeanFeatureInfo
MBeanAttributeInfo
MBeanParameterInfo
MBeanOperationInfo
MBeanConstructorInfo
MBeanNotificationInfo
Attribute and AttributeList
Inheritance Patterns
DynamicUser Example
Hot Deploying Resources
Summary
5. Model MBeans
ModelMBean Interface
Descriptors
Notification Logging Policy
Persistence Policy
Value Caching Policy
Export Policy
Model MBean Metadata
ModelMBeanInfo
getMBeanDescriptor and setMBeanDescriptor
Predefined MBean Descriptor Fields
ModelMBeanAttributeInfo
Predefined Management Attribute Descriptor Fields
ModelMBeanOperationInfo
Predefined Management Operation Descriptor Fields
ModelMBeanNotificationInfo
ModelMBeanConstructorInfo
Attribute Caching
Model MBean Example
Summary
6. MBean Server
Invocation Mechanism
ObjectName class
MBeanServerFactory Class
MBeanServer Interface
invoke()
createMBean
addNotificationListener and removeNotificationListener
getAttribute and setAttribute
registerMBean and unregisterMBean
queryMBeans and queryNames
Other MBeanServer Methods
MBeanRegistration Interface
preRegister and postRegister
preDeregister and postDeregister
MBeanServerDelegate
Queries
Scope of Queries
Building Queries
Summary
7. Standard Agent Services
M-Let Service
MLetMBean
MLET Tag
Hot Deployment Revisited
Timer Service
Timer MBean
Monitoring Service
Monitor
MonitorNotification
Counter Monitor
Gauge Monitor
Gauge Monitor Example
StringMonitor
Relation Service
Relation Service Metadata
RoleInfo
RelationType
Relation Service MBean
RelationNotification
Role and RoleList
Relation Example
Summary
II. JMX in the J2EE Platform
8. XMBean: Model MBean Implementation
ModelMBean Interface Implementation
MBeanRegistration Interface
DynamicMBean Interface
invoke
getAttribute and getAttributes
setAttribute and setAttributes
Persistence
ModelMBeanNotificationBroadcaster Implementation
Metadata Generation
XML Document Instances and DTD
Parsing the XML Document
Summary
9. Connectors and Protocol Adaptors
RMI Connector
RMI Connector Client
RMIInvocationHandler
ConnectorFactory
RMI Connector Server
RMI Connector MBean
MethodInvocation
Connector Example
SNMP Adaptor
A Comparison Between SNMP and JMX
Overview of Sun and AdventNet Adaptors
Creating an SNMP Adaptor
MIB Example
SNMP Class Generation
Completing the Example
Testing the Example
Summary
10. JMX Distribution Layer with J2EE Services
Location Transparency
MBean Handle
Export Manager
SOAP Connector
SOAP Example
Asynchronous JMS Connector
Design of the JMS Connector
Asynchronous MBean Server Interface
Callback Interface
ConnectorFactory
JMSConnector
JMS Connector Example
Summary
11. JMX for the Administrator
Management of Server Farms
Federation of Servers
Logical Views
JSR-77—J2EE Management
Management Model
Event Model
State Management Model
Performance Monitoring Model
Management EJB Component (MEJB)
J2EE Management SNMP
Summary
12. JMX Use Case: The JBoss Server
Microkernel Architecture
Adapt to Changing System Requirements
Minimal Core
Extended Functionality and Customer-Specific Parts
Collaboration Between Components
The Server Spine
Configuration Service
Remote Management
Extending the JBoss Server
Integration and Development Process
Summary
III. Appendixes
A. Environment Setup
Java SDK Installation
Sun JMX Reference Implementation Installation
IBM Tivoli JMX Implementation
Example Source Code
JBoss Setup
SOAP Configuration
JDOM Configuration
SNMP Configuration
B. Open MBeans
Overview of Open MBeans
Predefined Data Types
Summary
C. References and Resources
D. JBossMX
Project Goals
Agent Level
Instrumentation Level
Distributed Services Level
Summary
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
7. Standard Agent Services
Next
Next Chapter
8. XMBean: Model MBean Implementation
Part II. JMX in the J2EE Platform
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset