Escolar Documentos
Profissional Documentos
Cultura Documentos
Objectives
At the end of this session, participant should be able to
Understand MBeans
Describe the architecture of JMX design
Describe subsystem MBeans
Contents
Bea Weblogic Management Services (MBeans)
Introduction
MBean Types
Lifecycle of MBeans
MBean Data Model
MBean Servers
Connecting to MBean Servers
Service MBeans
Security For MBeans
Subsystem MBeans
Domain and Server Logging Configuration
JMS Server and JMS System Module Configuration
JDBC Resource Configuration
MBean Introduction
It defines a standard infrastructure to manage a device
from Java programs
It decouples the managed device from the management
tools
The specification describes MBeansthe building blocks
of JMX
MBean Types
MBeans can be organized into following general types based on
whether the MBean monitors or configures servers and resources
Runtime MBeans:
Contain information about the runtime state of a server and its resources
They generally contain only data about the current state of a server or
resource, and they do not persist this data
All runtime statistics and metrics from the runtime MBeans are destroyed
when server instance is shut down.
Configuration MBeans:
Contain information about the configuration of servers and resources
They represent the information that is stored in the domains XML
configuration documents
Configuration MBeans for system modules contain information about the
configuration of services such as JDBC data sources and JMS topics that
have been targeted at the system level
WebLogic Server does not provide MBeans for application modules
6
Runtime MBeans
Configuration MBeans
10
11
Continued
Admin Server
copy
of
1
domain
config
4
docs
(pending
folder)
5
MBeans
MS1
MBeans
Domain
Config
Docs
MS2
MSn
JMX Client
12
Continued
To control changes to the domains configuration, JMX
clients have read-only access to these configuration
MBeans
Administration Server maintains a copy of domains
configuration documents in domains config/pending
directory
It uses the data in these pending documents to instantiate
a set of configuration MBeans that JMX clients can modify
After a JMX client modifies one of these configuration
MBeans, the client directs the Administration Server to
save the modifications in the pending configuration
documents
13
Continued
Then the client starts a transactional process that updates
the read-only configuration documents and configuration
MBeans for all server instances in the domain
Configuration MBeans are destroyed when you shut down
the server instance that hosts them
14
15
Reference:
Reflects a sibling or other non-ancestor, non-descendant
relationship
16
Domain
MyServer
MyCluster
Containment Relationship
Domain - MyServer
Domain MyCluster
Reference Relationship
MyServer - MyCluster
18
Containment Relationship
To reflect this relationship, DomainMBean has two
attributes, Servers and Clusters
The value of the Servers attribute is an array of object
names
javax.management.ObjectName[]
for all ServerMBeans that have been created in the
domain
The value of the Clusters attribute is an array of object
names for all ClusterMBeans
19
20
21
22
Custom MBeans
WebLogic Server does not make its MBean
implementation classes publicly available
User can create and register custom MBeans
User can use the standard MBeanServer.create() or
register() methods
Custom MBeans are not part of the WebLogic Server data
model and do not participate in its factory method model
23
Reference Relationship
The XML excerpt in following listing illustrates a reference
relationship between <server> and <cluster>
While a server logically belongs to a cluster, the <server>
and <cluster> elements in the domains configuration file
are siblings
To reflect this relationship, ServerMBean has a Cluster
attribute whose value is the object name
(javax.management.ObjectName) of the ClusterMBean to
which the server belongs
MBeans in a reference relationship do not provide factory
methods
24
25
MBean
Name = name
Type = type
=
TypeOfParentMBean
NameOfParentMBean
Location=servername
27
28
31
MBean Servers
At the core of any JMX agent is the MBean server, which
acts as a container for MBeans
The JVM for an Administration Server maintains three
MBean servers provided by Oracle
Optionally maintains the platform MBean server, which is
provided by the JDK itself
The JVM for a Managed Server maintains only one
Oracle MBean server and the optional platform MBean
server.
32
Managed Server
Domain
Domain
Runtime
Runtime
MBean
MBean
Server
Server
Runtime
Runtime
MBean
MBean
Server
Server
Runtime
Runtime
MBean
MBean
Server
Server
Edit
Edit
MBean
MBean
Server
Server
JVMs
JVMs
platform
platform
MBean
MBean
Server
Server
JVMs
JVMs
platform
platform
MBean
MBean
Server
Server
33
34
35
36
37
Other JVM
JMX Client
38
Service MBeans
Within each MBean server, WebLogic Server registers a
service MBean under a simple object name
The attributes and operations in this MBean serve as
entry point into the WebLogic Server MBean hierarchies
It enable JMX clients to navigate to all WebLogic Server
MBeans in an MBean server after supplying only a single
object name
JMX clients that do not use the entry point MBean must
correctly construct an MBeans object name to get and set
the MBeans attributes or invoke its operations
Because the object names must be unique, they are
usually long and difficult to construct from a client
41
42
43
44
Subsystem MBeans
46
ServerMBean: Configures
Path prefix for the server's JTA transaction log files
WebServerMBean: Configures
Logging HTTP requests
VirtualHostMBean: Configures
Logging HTTP requests for virtual hosts that you define
JMSServerMBean: Configures
Message log file for this JMS Server
48
49
50
JMSSystemResourceMBean: Configures
A JMS system resource is a resource whose definition is part of
the system configuration rather than an application
SubDeploymentMBean: Configures
Subdeployment to enable administrators to deploy some
resources in a JMS module to a JMS server and other JMS
resources to a server instance or cluster
51
DestinationKeyBean: Configures
Unique sort order that destinations can apply to arriving
messages
By default messages are sorted in FIFO (first-in, first-out) order,
which sorts ascending based on each message's unique
JMSMessageID
However, it can be configured to use a different sorting scheme
for a destination, such as LIFO (last-in, first-out)
DistributedQueueBean: Configures
Queues that are distributed on multiple JMS servers, but which
are accessible as a single, logical topic to JMS clients
52
ForeignServerBean: Configures
Foreign messaging providers or remote WebLogic Server
instances that are not part of the current domain
JMSConnectionFactoryBean: Configures
Set of connection configuration parameters that are used to
create connections for JMS clients
Properties of the connections returned to the JMS client
Default delivery, transaction, and message flow control
parameters
53
QuotaBean: Configures
Allotment of system resources available to destinations
SAFRemoteContextBean: Configures
URL of the remote server instance or cluster where a JMS
destination is exported from
Security credentials to be authenticated and authorized in the
remote cluster or server
54
SAFImportedDestinationsBean: Configures
Imported SAF destinations which is a representation of a queue or
topic in a remote server instance or cluster that is imported into
the local cluster or server instance
Export SAF Destination parameter
Remote SAF context resource
SAF error handling resource
55
TopicBean: Configures
56
57
58
59
60
JDBCDriverParamsBean:
Contains the driver parameters of a data source. Configuration
parameters for the JDBC Driver used by a data source are
specified using a driver parameters bean
JDBCConnectionPoolParamsBean:
Contains the connection pool parameters of a data source
Configuration parameters for a data source's connection pool are
specified using the connection pool parameters bean
61
JDBCXAParamsBean:
Contains the XA-related parameters of a data source.
Configuration parameters for a data source's XA-related behavior
are specified using a XA parameters bean
62
63
Summary
In this session we covered
Bea Weblogic Management Services (MBeans)
Introduction
MBean Types
Lifecycle of MBeans
MBean Data Model
MBean Servers
Connecting to MBean Servers
Service MBeans
Security For MBeans
Subsystem MBeans
Domain and Server Logging Configuration
JMS Server and JMS System Module Configuration
JDBC Resource Configuration
64