Addison wesley java and JMX building manageable systems jan 2003 ISBN 0672324083

986 124 0
Addison wesley java and JMX building manageable systems jan 2003 ISBN 0672324083

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

• Table of Contents • Index Java™ and JMX: Building Manageable Systems By Heather Kreger, Ward Harold, Leigh Williamson Publisher : Addison Wesley Pub Date : December 30, 2002 ISBN : 0-672-32408-3 Pages : 592 Java is now used with increasing frequency to develop mission-critical applications Using Java Management Extensions (JMX) is the key to managing those applications As JMX is increasingly accepted into the fields of embedded systems, enterprise systems, and telephony, it is clear that all Java developers will encounter JMX before long Java(TM) and JMX: Building Manageable Systems is the definitive guide to JMX, combining an introduction to the technology with extensive coverage that will make this book a favorite reference Much more than just an explanation of the JMX specifications, this book can drastically reduce a reader's JMX learning curve by explaining how to develop management requirements and apply JMX to them The book's coverage includes: A management primer for Java programmers and architects A historical perspective on the evolution of JMX and its relation to other management standards, including SNMP, CIM/WBEM, TMN, and CMIP Development of JMX Manageable Resources with Standard and Dynamic MBeans Development with Model MBeans as customizable generic instrumentation using both the JMX APIs and XML files MBeanServer, including the MBean registry and object naming scheme, the generic MBean interface, and the query mechanism JMX Monitors and Notifications MBeanServer Services including the timer, relationship, and dynamic loading, along with custom services for XML services, HTTP adapters, RMI connectors, and security exposures and permissions JMX best practices, including deployment patterns, instrumentation patterns, federation patterns, and best practices JMX integration into J2EE and the JSR077 management models in J2EE 1.4 Using JMX to manage Web services from the perspective of service providers, registry providers, and users Written with an unparalleled degree of in-the-trenches familiarity and full of practical examples and working sample code, Java(TM) and JMX is a must-have introduction, technological guide, and reference for Java architects and developers • Table of Contents • Index Java™ and JMX: Building Manageable Systems By Heather Kreger, Ward Harold, Leigh Williamson Publisher : Addison Wesley Pub Date : December 30, 2002 ISBN : 0-672-32408-3 Pages : 592 Copyright Preface Introduction This Book's Intended Audience What You Need to Know before Reading This Book What You Will Learn from Reading This Book Software Needed to Complete the Examples How This Book Is Organized Where to Download the Associated Code for This Book Conventions Used in This Book About the Cover Acknowledgments Part I JMX Introduction Chapter 1 Management Concepts Section 1.1 Progress of Management Section 1.2 Management Architectures Section 1.3 Management Technologies Section 1.4 Managing the Lifecycle Section 1.5 Management Disciplines Section 1.6 Managed Resource Responsibilities Section 1.7 Management Patterns Section 1.8 Management Applications Section 1.9 Summary Section 1.10 General References Notes Chapter 2 Introduction to JMX[1] Section 2.1 Why We Need JMX Section 2.2 Which Applications Should Be Manageable? Section 2.3 The Goals of JMX Section 2.4 History Section 2.5 JMX Overview Section 2.6 Quick Tour of JMX Section 2.7 Summary Notes Part II JMX Details Chapter 3 All about MBeans Section 3.1 MBean Fundamentals Section 3.2 MBean Construction Section 3.3 Design Guidelines Section 3.4 Summary Chapter 4 Model MBeans Section 4.1 Introduction Section 4.2 The ModelMBean Interface Section 4.3 Managed Resources Section 4.4 ModelMBeanInfo Section 4.5 Descriptors Section 4.6 Behavior of the Model MBean Section 4.7 XML Service: Priming ModelMBeanInfo from XML Files Section 4.8 Using Model MBeans Section 4.9 Common Mistakes with Model MBeans Section 4.10 Caveats Section 4.11 Summary Section 4.12 XML File Example Notes Chapter 5 The MBeanServer Section 5.1 The MBeanServerFactory Class Section 5.2 Object Naming Section 5.3 The MBeanServer Interface Section 5.4 The MBeanServerDelegate MBean Section 5.5 Finding MBeans Section 5.6 Notifications Section 5.7 Summary Chapter 6 Monitors and Monitoring Section 6.1 The JMX Monitor Service Section 6.2 Concrete Monitors Section 6.3 Summary Chapter 7 JMX Agent Services Section 7.1 Timer Service Section 7.2 Dynamic MBean Loading Service Section 7.3 Relation Service Section 7.4 JMX Connectors Section 7.5 Summary Chapter 8 Securing JMX Section 8.1 JMX Security Exposures Section 8.2 Permission-Based Security Fundamentals Section 8.3 JMX Permissions Section 8.4 Using JMX Security Section 8.5 Summary Chapter 9 Designing with JMX Section 9.1 MBeanServer Deployment Patterns Section 9.2 Instrumentation Patterns Section 9.3 MBean Registration and Lifecycle Section 9.4 Best Practices Section 9.5 Summary Part III Application of JMX Chapter 10 J2EE and JMX Section 10.1 Java 2 Enterprise Edition Section 10.2 J2EE Management Section 10.3 Management Tool Access: The MEJB Section 10.4 J2EE Management Models Section 10.5 Standard Management Functions Section 10.6 Application-Specific Extensions Section 10.7 Areas Missing from J2EE Management Section 10.8 The Vision Section 10.9 Sample JSR 77 Code Section 10.10 Summary Notes Chapter 11 Web Services and JMX Section 11.1 Web Services Overview Section 11.2 Web Service Registry Management Section 11.3 Web Service Execution Environment Management Section 11.4 Web Service Management Section 11.5 Summary Section 11.6 Code Listings Notes Appendix JMX in Products Section A.1 JMX Agent Implementations Section A.2 JMX Managers Section A.3 JMX-Enabled Products Notes Index JDMK provides a remote-manager component that includes a proxy for the MBeanServer, and proxies for the MBeans, to make the development of JMX managers easier It also provides a JMX manager and tools to help define and manage the MBeans For more information, see http://www.sun.com/software/java-dynamic A.1.3 TMX4J 1.0 from Tivoli Systems TMX4J 1.0[4] was released in February 2001 It is a cleanroom implementation of the JMX specification, and it is JMX compatible, not compliant It is available from IBM's alphaWorks Web site at http://alphaworks.ibm.comtech/TMX4J The licensing on this software is the standard alphaWorks trial license However, alphaWorks is now making technologies available for release by products on a pertechnology basis More information is available at http://www.alphaworks.ibm.com/license TMX4J contains an HTTP and RMI adapter, and support for a logging facility with JLog.[5] It also comes with a very nice tutorial IBM's products that support JMX use TMX4J, including WebSphere 5.0,[6] WebSphere Voice Server,[7] WebSphere Edge Server,[8] WebSphere Business Integrator,[9] WebSphere Business Components Composer,[10] and Tivoli Web Component Manager.[11] A.1.4 AdventNet Agent Toolkit Java/JMX Edition[12] AdventNet[13] was the first vendor to ship a product with JMX support Its management agent toolkit supported the JMX 0.8 version before the JMX specification was final The most recent version has passed the JMX TCK and is now fully JMX compliant You must purchase this product from AdventNet This toolkit includes a rapid prototyping and development tool for building JMX agents, and it includes adapters for SNMP, HTML, RMI, HTTP, CORBA, and TL1 (Transaction Language 1) It also supports distributed JMX agents in a gateway or cascading configuration, as well as the building of stand-alone SNMP and TL1 agents in Java You can get more information at http://www.adventnet.com/products/manageengine/index.html Other AdventNet products that use JMX are ManageEngine and Web NMS A.1.5 AdventNet ManageEngine AdventNet ManageEngine is a graphical development environment that helps developers expose business- or application-specific management information even after an application is developed and deployed JMS (Java Message Service) and Web service JMX adapters are also being supported to integrate the management infrastructure with the existing middleware infrastructure For more information, see http://www.adventnet.com/products/manageengine/index.html A.1.6 MX4J MX4J[14] is an open-source implementation release of the JMX 1.0 specification that is JMX compatible because it has not passed the JMX TCK This is understandable, given the current licensing arrangements for the TCK MX4J uses the Apache[15] licensing model It provides an HTTP, RMI-over-JRMP,[16] and RMI-over-IIOP adapter It also includes a tool that allows you to generate your MBean interface via XDoclet Another interesting extension of MX4J is dynamic proxy support for MBeans so that the calls to the MBeans in your programs are more intuitive The MX4J implementation has a logging facility that makes it fairly easy to redirect the data to another logging facility, such as log4j.[17] MX4J provides some additional service MBeans: a naming MBean that wraps the RMI registry, a mailer MBean that sends e-mail, and a JythonRunner MBean that runs Jython scripts You can find more information at http://mx4j.sourceforge.net A.2 JMX Managers A.2.1 Tivoli Web Component Manager Tivoli Web Component Manager provides performance and availability monitoring of Web applications, including Web servers, Web application servers, and JMX-enabled applications It also provides a framework to define and execute automated responses to problems When paired with Tivoli Web Services Manager[18] and Tivoli Web Services Analyzer,[19] which measure and report on the performance and availability of ebusiness infrastructure from the end user's perspective, it can help you manage performance and availability from the end user through the backend application server More information is available from http://www.tivoli.com/products/index/web_component_mgr A.2.2 Dirig Software The Dirig agent with Fenway Management Extensions (FMX) provides management support capabilities for any third-party or custom Java application that exposes its management information via JMX FMX gives enterprises and service providers the ability to report on, create thresholds for, and take corrective actions on any exposed attribute to maintain performance and availability of JMX-enabled applications across multiplatform Web server environments You can find more information at http://www.dirig.com A.2.3 AdventNet Middleware Manager AdventNet Middleware Manager manages JMX-enabled applications deployed on J2EE servers like BEA WebLogic Server It adds JMX instrumentation for application-level information, in addition to using the JMX instrumentation available for the server infrastructure It provides a unified view of a network of servers, and it monitors the server and application components It reports on each segment of an end-to-end Web transaction so that performance and availability issues are quickly isolated You can find more information at http://www.adventnet.com/products/middleware A.2.4 AdventNet Web NMS AdventNet Web NMS provides an open, scalable, carrier-grade management infrastructure platform, with a suite of J2EE- and JMSbased cross-platform development framework, tools, modules, and APIs, as well as prepackaged applications Web NMS uses Java, CORBA, and other standards to deliver a management solution that communicates with managed systems (network elements, systems, and applications) It supports SNMP, TL1, XML, CORBA, and Telnet/CLI[20] protocols To integrate with OSS and other decision support systems, Web NMS supports interfaces like CORBA, RMI, JMX, SNMP, TL1, and HTTP You can find more information at http://www.adventnet.com/products/webnms A.2.5 Vigor Soft hawkEye[21] Vigor Soft's hawkEye enterprise product is a JMX-based management tool For more information, see http://www.vigorsoft.com A.3 JMX-Enabled Products The J2EE application vendors have been adopting and implementing versions of their products with JMX support for over a year now The following products currently use JMX for their own management and/or may be managed by JMX-based managers A.3.1 IBM WebSphere 5.0 WebSphere 5.0 supports both JMX and JSR 77, which defines the J2EE management model Through JMX you have access to WebSphere's configuration and performance metrics You can find more information at http://www.ibm.com/websphere WebSphere is a trademark of IBM in the United States A.3.2 IBM Web Services Tool Kit 3.1 The IBM Web Services Tool Kit is a leading-edge implementation and showcase for Web service technology It is available from http://www.alphaworks.ibm.com/tech/webservicestoolkit A.3.3 IBM WebSphere Voice Server IBM WebSphere Voice Server allows delivery of voice-enabled Internet applications to wireline and wireless devices using existing Web infrastructures You can find more information at http://www3.ibm.com/software/speech/enterprise/ep_1.html WebSphere is a trademark of IBM in the United States A.3.4 IBM WebSphere Business Components Composer IBM WebSphere Business Components Composer consists of easy-touse software implementation packages You can find more information at http://www-3.ibm.com/software/webservers/components WebSphere is a trademark of IBM in the United States A.3.5 BEA Systems WebLogic Server 7.0[22] BEA WebLogic Server 7.0 provides JMX-based management and manageability BEA's JMX support is JMX compliant More information is available at http://www.bea.com/products/weblogic/server/index.shtml A.3.6 IONA iPortal[23] IPortal by IONA is IONA's J2EE application server, which supports JMX More information is available at http://www.iona.com A.3.7 IONA Technologies PLC: Orbix E2A XMLBus Edition 5.3 IONA's XMLBus Edition (part of the Orbix E2A Web Services Integration Platform family) is an integration platform for the integration of heterogeneous applications built with NET, Java, J2EE, J2ME, and CORBA This platform provides rapid development tools, deployment infrastructure, and management for deployed Web services using JMX for instrumentation and management More information is available at http://www.iona.com/products/webserv-xmlbus.htm A.3.8 Hewlett-Packard OpenView OpenView is a network management system, storage management system, and application management system (including Web services) that now supports JMX plug-ins For more information, see http://www.hp.com A.3.9 Hewlett-Packard Core Services Framework HP Core Services Framework (CSF) is a framework (specification) and the underlying infrastructure that provides a core set of services such as naming and directory services, management services, logging services, and security services As a Java standards–based framework, HP CSF supports all the resource managers and services that could be required by Java developers, including JMX For more information, see http://www.hp.com A.3.10 JBoss JBoss is an open-source J2EE application server that is built on a JMX microkernel It supports HTTP Server, EJB, Java Connector Architecture, JMX, and CMP (Container Managed Persistence) It is free and distributed under the LGPL For more information, see http://www.jboss.org A.3.11 Sonic Software SonicXQ[24] Sonic Software's JMX-compliant SonicXQ by Sonic Software is an Enterprise Service Bus (ESB) that delivers integration through Web services and JCA SonicXQ also delivers performance, scalability, and manageability For more information, see http://www.sonicsoftware.com/products/sonicxq.htm A.3.12 Pramati Server from Pramati Technologies[25] Pramati Server 3.0 is a J2EE application server that comes with a management console that supports management of J2EE servers and applications It provides an MBean viewer and the ability to invoke MBean operations More information is available at http://www.pramati.com A.3.13 Sybase EAServer 4.0 EAServer is an application server that supports all component models, including J2EE, COM, CORBA, C/C++, and PowerBuilder For more information, see http://www.sybase.com/products/applicationservers/easerver A.3.14 Sun Microsystems: Sun ONE Application Server The Sun ONE application server (formerly iPlanet application server) provides the foundation for delivering application services (J2EE 1.3) and Web services It integrates an application development environment It forms the foundation for the Sun ONE services delivery platform More information is available at http://www.sun.com A.3.15 Sun Microsystems: Sun ONE Portal Server The Sun ONE Portal Server is an identity-enabled portal solution for managing and administering users, policy, and provisioning services, including single sign-on, delegated administration, and Web services More information is available at http://www.sun.com A.3.16 Compiere Open Source ERP & CRM Compiere Open Source ERP & CRM is the open-source ERP and CRM business solution for the Small-Medium Enterprise (SME) in distribution and service Compiere provides support for managing inventory, point of sale (POS), and accounting needs The Compiere server is JMX compliant All server services for the accounting server, request server, and utility server are implemented as dynamic MBeans You can manage the MBeans locally and remotely, or integrate with SNMP or CIM/WBEM managers The Compiere server is based on the JMX reference implementation For more information, see http://www.compiere.com The following products are also JMX enabled: Macromedia: Flash MX, http://www.macromedia.com Macromedia: JRun 4, http://www.macromedia.com Cogency: Cogency Connectors, http://www.manage.com/products/connectors.html Resonate Inc: Resonate Commander, http://www.resonate.com SpiritSoft: SpiritWave 5.1 , http://www.spiritsoft.com Wily Technology: Introscope, http://www.wilytech.com XadrA: VelocityAdaptorServer, http://www.xadra.com Notes JMX TCK from Sun: Java Management Extensions Technology Compatibility Kit 1.0 (April 2000), Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303; available at http://java.sun.com/products/JavaManagement Java Management Extensions Instrumentation and Agent Specification v1.0 (Final Release, April 2000), Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303; available at http://java.sun.com/products/JavaManagement Java Dynamic Management Kit 4.2, Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303; available at http://www.sun.com/software/java-dynamic TMX4J is Tivoli's freely available JMX-compatible JMX implementation It is available from http://www.alphaworks.ibm.com/tech/TMX4J log4J is the Java API for logging available from Apache For more information see http://jakarta.apache.org/log4j/docs/index.html WebSphere 5.0 supports both JMX and JSR 77, which defines the J2EE management model Through JMX you have access to WebSphere's configuration and performance metrics You can find more information at http://www.ibm.com/websphere WebSphere is a trademark of IBM in the United States WebSphere Voice Server allows delivery of voice-enabled Internet applications to wireline and wireless devices using existing Web infrastructures You can find more information at http://www-3.ibm.com/software/speech/enterprise/ep_1.html WebSphere is a trademark of IBM in the United States WebSphere Edge Server V2.0 for Multiplatforms (Edge Server) distributes application processing to the edge of the network under centralized administrative and application control You can find more information at http://www3.ibm.com/software/webservers/edgeserver WebSphere is a trademark of IBM in the United States WebSphere Business Integrator provides a complete and consistent model for both Enterprise Application Integration (EAI) and business-to-business (B2B) integration You can find more information at http://www3.ibm.com/software/webservers/btobintegrator WebSphere is a trademark of IBM in the United States 10 WebSphere Business Components Composer consists of easyto-use software implementation packages You can find more information at http://www3.ibm.com/software/webservers/components WebSphere is a trademark of IBM in the United States 11 Tivoli Web Component Manager (TWCM) is Tivoli's management application that measures the performance of the components of your e-business: operating systems, Web servers, and Web applications You can find more information at http://www.tivoli.com/products/index/web_component_mgr/index.html 12 Information about AdventNet Agent Tookit Java/JMX Edition is available at http://www.adventnet.com/products/javaagent 13 AdventNet markets agent toolkits that support both SNMP and JMX technologies More information is available at http://www.adventnet.com 14 MX4J is an open-source community for JMX specification implementations using the Apache licensing model More information is available at http://mx4j.sourceforge.net 15 Apache public license information is available at http://www.apache.org 16 JRMP stands for Java Remote Method Protocol 17 IBM JLog is a Java logging API that is available at http://www.alphaworks.ibm.com/tech/loggingtoolkit4j 18 Tivoli Web Services Manager is Tivoli's management application that checks Web site availability and response time from the user's point of view You can find more information at http://www.tivoli.com/products/index/web_services_mgr/index.html 19 Tivoli Web Services Analyzer is Tivoli's management application that helps you baseline and improve the true quality of experience Web visitors receive when accessing your site 20 CLI stands for Command Line Interface 21 Vigor Soft's hawkEye enterprise product is a JMX-based management tool For more information, see http://www.vigorsoft.com 22 BEA WebLogic Server 5.0, 6.0, and now 7.0 have all provided JMX-based management and manageability More information is available at http://www.bea.com 23 IPortal by IONA is IONA's J2EE Application server, which supports JMX According to IONA, the iPortal Application Server has been incorporated into the Orbix E2A Application Server Platform as the Orbix E2A J2EE Technology Edition More information is available at http://www.iona.com 24 Sonic Software's SonicXQ by Sonic Software For more information see http://www.sonicsoftware.com/products/sonicxq.htm 25 Pramati Server 3.0, by Pramati Technologies, is a J2EE application server that comes with a management console that supports management of J2EE servers and applications It provides an MBean viewer and the ability to invoke MBean operations More information is available at http://www.pramati.com Ru-Brd [O] Ru-Brd Ru-Brd [O] OLE_LINK1 Ru-Brd ... Table of Contents • Index Java and JMX: Building Manageable Systems By Heather Kreger, Ward Harold, Leigh Williamson Publisher : Addison Wesley Pub Date : December 30, 2002 ISBN : 0-672-32408-3 Pages... Written with an unparalleled degree of in-the-trenches familiarity and full of practical examples and working sample code, Java( TM) and JMX is a must-have introduction, technological guide, and reference for Java architects and developers •...A historical perspective on the evolution of JMX and its relation to other management standards, including SNMP, CIM/WBEM, TMN, and CMIP Development of JMX Manageable Resources with Standard and Dynamic MBeans Development with Model MBeans as customizable generic

Ngày đăng: 26/03/2019, 17:06

Mục lục

  • Main Page

  • Table of content

  • Copyright

  • Preface

    • Introduction

    • This Book's Intended Audience

    • What You Need to Know before Reading This Book

    • What You Will Learn from Reading This Book

    • Software Needed to Complete the Examples

    • How This Book Is Organized

    • Where to Download the Associated Code for This Book

    • Conventions Used in This Book

    • About the Cover

    • Acknowledgments

    • Part I: JMX Introduction

      • Chapter 1. Management Concepts

        • 1.1 Progress of Management

        • 1.2 Management Architectures

        • 1.3 Management Technologies

        • 1.4 Managing the Lifecycle

        • 1.5 Management Disciplines

        • 1.6 Managed Resource Responsibilities

        • 1.7 Management Patterns

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan