Oracle WebLogic Server



Similar documents
Review Employee Leave Balances

New Features in Primavera Contract Management 14.1

Vendor Performance Summary Report

Reviewing Employee History

About Contract Management

Revenue/Expenses Balance by Fund

Oracle Fusion Middleware. 1 Oracle Identity Management Templates


COPYRIGHT & TRADEMARKS

Bank Account Numbers for ACH Payments

Oracle Enterprise Manager

Oracle Enterprise Manager

Scheduler JAVA JOB Creation Oracle FLEXCUBE Investor Servicing Release [September] [2014]

Approve or Reject Purchase Requistions, Contracts, and Purchase Orders

Oracle Banking Digital Experience

New Features in Primavera P6 Professional 15.1

NEW FEATURES ORACLE ESSBASE STUDIO

Oracle Retail MICROS Stores2 Functional Document Tax Free - Manual Receipt Number Assignment Release September 2015

Oracle WebLogic Server

1 What Are Web Services?

Crystal Access Guide HCM 9.1 All Sites

Oracle Banking Digital Experience

Oracle FLEXCUBE Direct Banking Release Help Desk User Manual. Part No. E

Oracle Retail MICROS Stores2 Functional Document Sales - Reasons Release September 2015

Oracle Business Intelligence Publisher. 1 Oracle Business Intelligence Publisher Certification. Certification Information 10g Release 3 (

Release Notes Oracle VueLink for Documentum Interface for Oracle AutoVue, Client/Server Deployment Oracle Corporation

1 What Are Web Services?

Oracle Enterprise Data Quality. 1 JMX Binding. 1.1 Examples. Java Management Extensions Configuration Release 11g R1 ( )

Oracle Enterprise Manager

Oracle Audit Vault Administrator s Guide Oracle Audit Vault Auditor s Guide Oracle Enterprise Manager Cloud Control Administrator s Guide

Siebel Application Deployment Manager Guide. Siebel Innovation Pack 2013 Version 8.1/8.2 September 2013

Oracle Communications Network Charging and Control. Release: 4.4

StorageTek Library Attach for Window Servers

Oracle WebCenter Content Service for Microsoft Exchange

Introduction to Virtual Datacenter

Oracle Utilities Integration for Device Operations

Human Resources 9.1 Basic Navigation Guide

Oracle Retail MICROS Stores2 Functional Document General - License Control Release September 2015

Oracle Retail Point-of-Service with Mobile Point-of-Service

Customer Order Portal Created on 9/24/ :45 PM

Oracle Agile Product Lifecycle Management for Process

Oracle WebLogic Server

Oracle Cloud E

Start Oracle Insurance Policy Administration. Activity Processing. Version

University of Missouri

Oracle WebCenter Sites. Backup and Recovery Guide 11g Release 1 (11.1.1)

Oracle WebLogic Server

Oracle Fusion Transactional Business Intelligence

Oracle Cloud E

Oracle Cloud. Creating a Business Intelligence Cloud Extract E

P R O V I S I O N I N G O R A C L E H Y P E R I O N F I N A N C I A L M A N A G E M E N T

Deploying Oracle Business Intelligence Publisher in J2EE Application Servers Release

Oracle Database. How To Get Started. April g Release 2 (10.2) for or IBM z/os (OS/390) B

Oracle Enterprise Single Sign-on Logon Manager How-To: Configuring ESSO-LM Event Logging with Microsoft SQL Server 2005 Release

Oracle Enterprise Manager. Description. Versions Supported

Oracle Banking Digital Experience

Oracle Database. Products Available on the Oracle Database Examples Media. Oracle Database Examples. Examples Installation Guide 11g Release 2 (11.

Oracle Hospitality Payment Gateway Services Release Notes Release Part Number: E January 2016

PeopleSoft Enterprise Campus Solutions 9.0 Enrollment Web Services

Viewing Paycheck Information Online - LSU Health New Orleans - On Campus

Copyright

Oracle Utilities Meter Data Management Business Intelligence

NetFlow Collection and Processing Cartridge Pack User Guide Release 6.0

Oracle Virtual Desktop Client. Release Notes for Version 3.0

ORACLE USER PRODUCTIVITY KIT USAGE TRACKING ADMINISTRATION & REPORTING RELEASE 3.6 PART NO. E

Agile Product Lifecycle Management for Process

Viewing Paycheck Information Online - LSUSH Off Campus

Oracle Insurance Policy Administration. Version

Contents Legal Notices... 2 Preface... 5 Introduction... 7 Installation Instructions... 8

Oracle Virtual Desktop Client for ipad. User Guide for Version 1.0

Oracle Enterprise Manager

JD Edwards EnterpriseOne Tools. 1 Understanding JD Edwards EnterpriseOne Business Intelligence Integration. 1.1 Oracle Business Intelligence

Oracle FLEXCUBE Direct Banking Android Tab Client Installation Guide Release

Oracle Enterprise Manager. Description. Versions Supported. Prerequisites

Oracle Hospitality OPERA Cloud Services Security Guide Release 1.20 Part Number: E April 2016

PeopleSoft Enterprise Services Procurement 9.1 Reports

Oracle JRockit JDK. Supported Configurations R27.6. April 2009

Report Writer's Guide Release 14.1

Open Interface Servicing (Line of Credit) Oracle Financial Services Lending and Leasing Release Part No. E [October] [2013]

Job Scheduler Oracle FLEXCUBE Universal Banking Release [April] [2014] Oracle Part Number E

Oracle Tuxedo Systems and Application Monitor (TSAM)

PeopleSoft Enterprise FSCM 9.1 Mobile Inventory Management Hardware and Software Requirements

Oracle VM. Paravirtual Drivers Installation Guide for Microsoft Windows for Release E May 2012

Required Ports and Protocols. Communication Direction Protocol and Port Purpose Enterprise Controller Port 443, then Port Port 8005

Oracle Retail MICROS Stores2 Functional Document Customers - Online Centralized Customer Management Release September 2015

Oracle Fusion Middleware

Functional Enhancements

Oracle Audit Vault Oracle FLEXCUBE Universal Banking Release [April] [2014]

Oracle OLAP. Describing Data Validation Plug-in for Analytic Workspace Manager. Product Support

Oracle Retail Customer Engagement Cloud Service (Relate) Release Notes Release March 2015

Configuring Internet Explorer Oracle FLEXCUBE Universal Banking Release [April] [2014]

Oracle Utilities Mobile Workforce Management Business Intelligence

Oracle Enterprise Manager. Introduction to the Oracle Virtual Networking Plug-in. Requirements. Supported Versions

C O N F I G U R I N G O P E N L D A P F O R S S L / T L S C O M M U N I C A T I O N

Oracle Order to Activate Integration Pack for Siebel CRM and Oracle Communications Order and Service Management

Integrating Oracle Sales Cloud, Release 9 with JD Edwards EnterpriseOne release 9.1 Implementation Guide

Oracle Enterprise Manager Ops Center. Introduction. Tuning Monitoring Rules and Policies 12c Release 1 ( )

Downloading Oracle Configuration Manager

SSL Configuration on WebSphere Oracle FLEXCUBE Universal Banking Release [September] [2013] Part No. E

Transcription:

Oracle WebLogic Server Monitoring and Managing with the Java EE Management APIs 10g Release 3 (10.3) July 2008

Oracle WebLogic Server Monitoring and Managing with the Java EE Management APIs, 10g Release 3 (10.3) Copyright 2007, 2008, Oracle and/or its affiliates. All rights reserved. This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited. The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing. If this software or related documentation is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, the following notice is applicable: U.S. GOVERNMENT RIGHTS Programs, software, databases, and related documentation and technical data delivered to U.S. Government customers are "commercial computer software" or "commercial technical data" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, the use, duplication, disclosure, modification, and adaptation shall be subject to the restrictions and license terms set forth in the applicable Government contract, and, to the extent applicable by the terms of the Government contract, the additional rights set forth in FAR 52.227-19, Commercial Computer Software License (December 2007). Oracle USA, Inc., 500 Oracle Parkway, Redwood City, CA 94065. This software is developed for general use in a variety of information management applications. It is not developed or intended for use in any inherently dangerous applications, including applications which may create a risk of personal injury. If you use this software in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure the safe use of this software. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software in dangerous applications. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. This software and documentation may provide access to or information on content, products and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content, products, and services. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content, products, or services.

Contents 1. Introduction and Roadmap Document Scope and Audience............................................. 1-1 Guide to This Document.................................................. 1-2 Related Documentation................................................... 1-2 2. Using the Java EE Management APIs on WebLogic Server Understanding the Java EE Management Model and APIs........................ 2-1 JMO Hierarchy...................................................... 2-2 JMO Object Names................................................... 2-2 Optional Features of JMOs............................................. 2-2 Accessing JMOs..................................................... 2-3 The Java EE Management Model on WebLogic Server.......................... 2-3 Accessing the MEJB on WebLogic Server.................................... 2-3 Example: Querying Names of JMOs..................................... 2-4 Monitoring and Managing with the Java EE Management APIs iii

iv Monitoring and Managing with the Java EE Management APIs

CHAPTER 1 Introduction and Roadmap The Java EE Management specification describes a standard data model for monitoring and managing the runtime state of any Java EE Web application server and its resources. It includes standard mappings of the model through a Java EE Management EJB Component (MEJB). The following sections describe the contents and organization of this guide Monitoring and Managing with the J2EE Management APIs: Document Scope and Audience on page 1-1 Guide to This Document on page 1-2 Related Documentation on page 1-2 Document Scope and Audience This document is a resource for software developers who develop management services for Java EE applications and for software vendors who develop JMX-compatible management systems. It also contains information that is useful for business analysts and system architects who are evaluating WebLogic Server or considering the use of JMX for a particular application. The information in this document is relevant during the design and development phases of a software project. The document does not address production phase administration, monitoring, or performance tuning topics. For links to WebLogic Server documentation and resources for these topics, see Related Documentation on page 1-2. It is assumed that the reader is familiar with Java EE and general application management concepts. This document emphasizes a hands-on approach to developing a limited but useful set Monitoring and Managing with the Java EE Management APIs 1-1

Introduction and Roadmap of JMX management services. For information on applying JMX to a broader set of management problems, refer to the JMX specification or other documents listed in Related Documentation on page 1-2. Guide to This Document This document is organized as follows: This chapter, Introduction and Roadmap, describes the scope and organization of this guide. Chapter 2, Using the Java EE Management APIs on WebLogic Server, introduces JMX and describes common ways to use it in conjunction with other WebLogic Server management features. Related Documentation The Sun Developer Network includes a Web site that provides links to books, white papers, and additional information on JMX: http://java.sun.com/javase/technologies/core/mntr-mgmt/javamanagement/. To view the JMX 1.2 specification and API documentation, download it from http://jcp.org/aboutjava/communityprocess/final/jsr003/index3.html. To view the JMX Remote API 1.0 specification and API documentation, download it from http://jcp.org/aboutjava/communityprocess/final/jsr160/index.html. For guidelines on developing other types of management services for WebLogic Server applications, see the following documents: Using WebLogic Logging Services for Application Logging describes WebLogic support for internationalization and localization of log messages, and shows you how to use the templates and tools provided with WebLogic Server to create or edit message catalogs that are locale-specific. Configuring and Using the WebLogic Diagnostic Framework describes how system administrators can collect application monitoring data that has not been exposed through JMX, logging, or other management facilities. For guidelines on developing and tuning WebLogic Server applications, see the following documents: 1-2 Monitoring and Managing with the Java EE Management APIs

Related Documentation Developing Applications with WebLogic Server is a guide to developing WebLogic Server applications. Developing Manageable Applications with JMX describes how to create and register custom MBeans. Monitoring and Managing with the Java EE Management APIs 1-3

Introduction and Roadmap 1-4 Monitoring and Managing with the Java EE Management APIs

CHAPTER 2 Using the Java EE Management APIs on WebLogic Server The Java EE Management APIs enable a software developer to create a single Java program that can discover and browse resources, such as JDBC connection pools and deployed applications, on any Java EE Web application server. The APIs are part of the Java EE Management Specification, which requires all Java EE Web application servers to describe their resources in a standard data model. The following sections describe how to use the Java EE Management APIs on WebLogic Server: Understanding the Java EE Management Model and APIs on page 2-1 The Java EE Management Model on WebLogic Server on page 2-3 Accessing the MEJB on WebLogic Server on page 2-3 Understanding the Java EE Management Model and APIs In the Java EE Management data model, each instance of a Web application server resource type is represented by a Java EE Managed Object (JMO). The Java EE Management Specification describes exactly which types of resources must be represented by a JMO. JMOs themselves contain only a limited set of attributes, which are used to describe the location of the object in the data model. Download the Java EE Management Specification from http://jcp.org/aboutjava/communityprocess/final/jsr077/index.html. Monitoring and Managing with the Java EE Management APIs 2-1

Using the Java EE Management APIs on WebLogic Server JMO Hierarchy The data model organizes JMOs hierarchically in a tree structure. The root JMO is J2EEDomain, which represents a collection of Web application server instances that are logically related. J2EEDomain contains the object names for all instances of the J2EEServer JMO, each of which represents a server instance in the collection. Java applications can browse the hierarchy of JMOs, recursively querying for object names and looking up the JMOs that are named by the query results. JMO Object Names Each JMO instance is identified by a unique object name of type javax.management.objectname. The names follow this pattern: domain:name=j2eetype=value,name=value,parent-j2eetype[,property=value]* For example, mydomain:j2eetype=j2eedomain,name=mydomain The Java EE Management Specification describes exactly which name/value pairs must be in the object names for each JMO type. The object name for each child JMO contains name/value pairs from its parent JMO s object name. For example, if the JMO for a server instance is named mydomain:j2eetype=j2eeserver,name=myserver then the JMO for a servlet that is part of an application deployed on that server instance would be named: mydomain:j2eeapplication=myapplication,j2eeserver=myserver,webmodule=myapp _mywebmodule,j2eetype=servlet,name=myservlet_name The name/value pairs can appear in any order. Optional Features of JMOs The Java EE Management Specification, version 1.0, requires only that Web application servers implement JMOs and provide API access to the JMOs. Optionally, you can implement the JMOs to provide performance statistics, management operations, and to emit notifications when specified events occur. 2-2 Monitoring and Managing with the Java EE Management APIs

The Java EE Management Model on WebLogic Server Accessing JMOs A Java application accesses the JMOs through javax.management.j2ee.management, which is the remote interface for the Management Enterprise Java Bean (MEJB). The Java EE Management Specification requires that the MEJB s home interface be registered in a server s JNIDI tree as ejb.mgmt.mejb. See the API Reference for the javax.management.j2ee package: http://java.sun.com/j2ee/1.4/docs/api/javax/management/j2ee/package-summary.html. The Java EE Management Model on WebLogic Server WebLogic Server 9.0 implements only the required features of the Java EE Management Specification, version 1.0. Therefore, the following limitations are in place: None of the JMOs provide performance statistics, management operations, or emit notifications. There are no mappings to the Common Information Model (CIM). There are no mappings to an SNMP Management Information Base (MIB). The MEJB and JMOs are available only on the Administration Server. This is consistent with the Java EE Management Model, which assumes that most Java EE Web servers exist within some logically connected collection and that there is a central point within the collection for accessing or managing the server instances. From the Administration Server, a Java application can browse to the JMO that represents any resource on any server instance in the WebLogic Server domain. Because WebLogic Server implements its JMOs as a wrapper for its MBeans, any changes in a WebLogic Server MBean that corresponds to a JMO is immediately available through the Java EE Management APIs. For all JMO object names on WebLogic Server, the domain: portion of the object name corresponds to the name of the WebLogic Server domain. Accessing the MEJB on WebLogic Server To retrieve monitoring data through the MEJB: 1. Look up the javax.management.j2ee.managementhome interface through the Administration Servers JNDI tree under the name ejb.mgmt.mejb. Monitoring and Managing with the Java EE Management APIs 2-3

Using the Java EE Management APIs on WebLogic Server 2. Use ManagementHome to construct an instance of javax.management.j2ee.management, which is the MEJB s remote interface. Example: Querying Names of JMOs The example class in accesses the MEJB for a WebLogic Server domain and invokes javax.management.j2ee.management.querynames method. This method returns the object name for all JMOs in the domain. Listing 2-1 Querying Names of JMOs import java.io.ioexception; import java.net.malformedurlexception; import java.util.iterator; import java.util.set; import java.util.properties; import javax.management.j2ee.management; import javax.management.j2ee.managementhome; import javax.management.attributenotfoundexception; import javax.management.instancenotfoundexception; import javax.management.objectname; import javax.management.queryexp; import javax.naming.context; import javax.naming.initialcontext; import javax.naming.namingexception; import javax.ejb.createexception; public class GetJMONames { static String url = "t3://localhost:7001"; static String user = "weblogic"; static String password = "weblogic"; public static void main(string[] args) { try { getalljmonames(); catch(exception e){ System.out.println(e); 2-4 Monitoring and Managing with the Java EE Management APIs

Accessing the MEJB on WebLogic Server public static Management getmejbremote() throws IOException, MalformedURLException, NamingException,CreateException { Context context = getinitialcontext(); ManagementHome home = (ManagementHome) context.lookup("ejb.mgmt.mejb"); Management bean = home.create(); return bean; public static Context getinitialcontext() throws NamingException { Properties p = new Properties(); p.put(context.initial_context_factory, "weblogic.jndi.wlinitialcontextfactory"); p.put(context.provider_url, url); if (user!= null) { p.put(context.security_principal, user); if (password == null) password = ""; p.put(context.security_credentials, password); return new InitialContext(p); public static void getalljmonames() { try { Management rhome = getmejbremote(); String string = ""; ObjectName name = new ObjectName(string); QueryExp query = null; Set allnames = rhome.querynames(name, query); Iterator nameiterator = allnames.iterator(); Monitoring and Managing with the Java EE Management APIs 2-5

Using the Java EE Management APIs on WebLogic Server while(nameiterator.hasnext()) { ObjectName on = (ObjectName)nameIterator.next(); System.out.println(on.getCanonicalName() + "\n"); catch (Exception ex) { ex.printstacktrace(); 2-6 Monitoring and Managing with the Java EE Management APIs