Managed Bean

Managed Bean

In the JMX API, a managed bean - sometimes simply referred to as an "MBean" - is a type of JavaBean, created with dependency injection. Managed Beans are particularly used in the Java Management Extensions technology.

The MBean represents a resource running in the Java Virtual Machine such as an application, a J2EE technical service (transactional monitor, JDBC driver, ...), ... They can be used for getting and setting applications configuration (pull), for collecting statistics (pull) (e.g. performance, resources usage, problems, ...) and notifying events (push) (e.g. faults, state changes, ...)

MBean Types

There are two basic types of MBean:
* "Standard MBeans" implement a business interface containing setters and getters for the attributes and the operations (i.e., methods).
* "Dynamic MBeans" implement the javax.management.DynamicMBean interface which provides a way to list the attributes and operations, and to get and set the attribute values.

Additional types are "Open MBeans", "Model MBeans" and "Monitor MBeans".

"Open MBeans" are dynamic MBeans that rely on the basic data types. They are self-explanatory and more user friendly.

"Model MBeans" are dynamic MBeans that can be configured during runtime. A generic MBean class is also provided for dynamically configuring the resources during program runtime.

MBean Registration

The registration of an MBean in the MBeanServer (i.e., the agent) requires a unique identifier called "ObjectName".The "ObjectName" pattern is composed of two parts. The first one indicates the domain since the second one is a list of name-value pairs. Registered MBeans can be searched using wildcards in the ObjectName (e.g *:type=Memory*)

MBean Notification

An MBean can notify the MBeanServer of its internal changes (for the attributes) by implementing the javax.management.NotificationEmitter. The application interested in the MBean's changes registers a listener (javax.management.NotificationListener) to the MBeanServer.

MXBean

An MXBean ("Platform MBean") is a special type of MBean that reifies Java Virtual Machine subsystems such as memory pools, garbage collection, multi-threading, class loading, JIT compilation, etc.

MLet

MLet ("Management applet") is a utility MBean to load, instantiate and register MBeans in the MBeanServer from a XML description.The format of the XML descriptor is: [cite news | url=http://java.sun.com/j2se/1.5.0/docs/api/javax/management/loading/MLet.html | title=MLet (Java 2 Platform SE 5.0) | publisher=Sun Microsystems | accessdate=2008-06-22]

[arglist]

References

External links

* [http://java.sun.com/j2se/1.5.0/docs/guide/management/overview.html Sun Java Overview of Monitoring and Management]


Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Look at other dictionaries:

  • Entity Bean — Enterprise JavaBeans (EJB) sind standardisierte Komponenten innerhalb eines Java EE Servers (Java Enterprise Edition). Sie vereinfachen die Entwicklung komplexer mehrschichtiger verteilter Softwaresysteme mittels Java. Mit Enterprise JavaBeans… …   Deutsch Wikipedia

  • Session Bean — Enterprise JavaBeans (EJB) sind standardisierte Komponenten innerhalb eines Java EE Servers (Java Enterprise Edition). Sie vereinfachen die Entwicklung komplexer mehrschichtiger verteilter Softwaresysteme mittels Java. Mit Enterprise JavaBeans… …   Deutsch Wikipedia

  • Entity Bean — An Entity Bean is a type of Enterprise JavaBean, a server side J2EE component, that represents persistent data maintained in a database. An entity bean can manage its own persistence (Bean managed persistence) or can delegate this function to its …   Wikipedia

  • List of Mr. Bean episodes — This is an episode guide for the television series Mr. Bean, starring Rowan Atkinson, which ran between 1 January 1990 and 15 November 1995. Contents 1 Mr. Bean 2 The Return of Mr. Bean 3 The Curse of Mr. Bean …   Wikipedia

  • Peter Ellis Bean — (sometimes Ellis Peter Bean ; Spanish: Pedro Elias Bean ) (June 8, 1783, Bean Station, Tennessee – October 3, 1846, Veracruz) was a United States filibuster in Texas and Mexico, and a Mexican revolutionary.Early lifeBean was born in Tennessee in… …   Wikipedia

  • Vaughn Bean — (born September 3, 1974 in Chicago, IL) is a professional boxer. Nicknamed Shake and Bake , Bean is known for making several arguably undeserved challenges for heavyweight titles, each time coming up short. Bean began his career with 27 victories …   Wikipedia

  • Anne Bean — is an internationally known installation and performance artist whose work is managed by Artsadmin.Born in Zambia and resident in the UK, her evocative work encompasses a range of media including slide projections, drawing, photography, video and …   Wikipedia

  • Robert Bean (politician) — Robert Ernest Bean (5 September 1935 ndash; 7 December 1987) was a British Labour Party politician and polytechnic lecturer. Having served as a councillor, Bean was elected Member of Parliament for the marginal Rochester and Chatham seat in the… …   Wikipedia

  • Java Management Extensions — (JMX) is a Java technology that supplies tools for managing and monitoring applications, system objects, devices (e. g. printers) and service oriented networks. Those resources are represented by objects called MBeans (for Managed Bean). In… …   Wikipedia

  • Faces-config.xml — is a key configuration file type within a JavaServer Faces (JSF) software implementation.The Java Platform, Enterprise Edition specification refers to this type of file as an Application Configuration Resource File. There may be more than one… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”