Managed Object (m-bean) Examples

Simple Example
Simple Indexed Property Example
Self-Registering M-Bean Example
Simple Event Example
Monitor Example
Alarm Clock and Difference Monitor Example
Simple M-Let Example
Advanced M-Let Example
Scheduler Example
Kernel statistics Example
Source Files
This example shows:
- For an agent:
- How to develop an m-bean that complies with
the m-bean design patterns for simple properties
and actions.
- For a manager:
- How to create a c-bean with the
mogen
tool.
- How to establish communication with the agent.
- How to access and modify the simple properties of
a remote m-bean through a c-bean.
- How to perform an action on a remote m-bean through a c-bean.
Access the readme for this example.
This example shows:
- For an agent:
- How to develop an m-bean that complies with
the m-bean design patterns for indexed properties.
- For a manager:
- How to create a c-bean with the
mogen
tool.
- How to establish communication with the agent.
- How to access and modify the indexed properties of
a remote m-bean through a c-bean.
Access the readme for this example.
This example shows:
- For an agent:
- How to develop an m-bean that complies with
the m-bean design patterns for simple properties
and actions.
- How the m-bean specific method
initCmf
can be used to enable an m-bean to register itself with the framework.
- How the m-bean specific method
deleteCmf
can be used to serialize the m-bean before deletion.
- For a manager:
- How to create a c-bean with the
mogen
tool.
- How to establish communication with the agent.
- How to access and modify the simple properties of
a remote m-bean through a c-bean.
- How to perform an action on a remote m-bean through a c-bean.
Access the readme for this example.
This example shows:
- For an agent:
- How to develop an m-bean that implements an
event mechanism.
- How to implement an event.
- How to implement an event listener interface.
- How to develop an m-bean that complies with
the m-bean design patterns for events.
- For a manager:
- How to create a c-bean with the
mogen
tool.
- How to establish communication with the agent.
- How to implement an event listener.
- How to receive events by registering an
event listener with a remote event source.
- How to remove an event listener from a
remote event source.
- How to access and modify the properties of
a remote m-bean through a c-bean.
Access the readme for this example.
This example shows:
- For an agent:
- How to develop an m-bean that complies with
the m-bean design patterns for simple properties.
- How the m-bean specific method
initCmf
can be used to enable an m-bean to register itself with the framework.
- For a manager:
- How to create a c-bean with the
mogen
tool.
- How to establish communication with the agent.
- How to implement an event listener.
- How to receive events by registering an
event listener with a remote event source.
- How to remove an event listener from a
remote event source.
- How to access and modify the properties of
a remote m-bean through a c-bean.
Access the readme for this example.
This example shows:
- For an agent:
- How to develop an m-bean that complies with
the m-bean design patterns for simple properties.
- How to implement m-bean specific methods
initCmf
and deleteCmf
.
- For a manager:
- How to create a c-bean with the
mogen
tool.
- How to establish communication with the agent.
- How to add monitors to a remote agent and set them up
to monitor properties of remote m-beans.
- How to implement an event listener.
- How to receive events by registering an
event listener with a remote monitor.
- How to remove an event listener from a
remote monitor.
- How to access and modify the properties of
a remote m-bean through a c-bean.
Access the readme for this example.
This example shows:
-
For an agent:
- How to develop an m-bean that complies with
the m-bean design patterns for simple properties.
- How the m-bean specific method
initCmf
can be used to enable an m-bean to register itself with the framework.
- How to register an m-bean
with an object name by using the m-let service.
- For a manager:
- How to create a c-bean with the
mogen
tool.
- How to establish communication with the agent.
- How to initialize and register the m-let service
with the remote agent.
- How to use the m-let service to add m-beans to an agent
through a connection to a given URL.
- How to remove the m-let service from the remote agent.
- How to access the properties of
a remote m-bean through a c-bean.
Access the readme for this example.
This example shows:
- For an agent:
- How to develop an m-bean that complies with
the m-bean design patterns for simple properties.
- How to implement the m-bean specific methods
initCmf
and deleteCmf
.
- How to use the m-let service to register an m-bean
with an object name.
- How to instantiate an m-bean from
within the
initCmf
method.
- For a manager:
- How to create a c-bean with the
mogen
tool.
- How to establish communication with the agent.
- How to initialize and register the m-let service
with the remote agent.
- How to use the m-let service to add m-beans to an agent
through a connection to a given URL.
- How to remove the m-let service from the remote agent.
- How to access the properties of
a remote m-bean through a c-bean.
Access the readme for this example.
This example shows:
- For an agent:
- How to develop an m-bean that complies with
the m-bean design patterns for simple properties
and actions.
- How to implement the m-bean specific methods
initCmf
and deleteCmf
.
- For a manager:
- How to create a c-bean with the
mogen
tool.
- How to establish communication with the agent.
- How to create an instance of an m-bean that implements a scheduler listener in the remote agent.
- How to start and stop the scheduler service of a remote m-bean through a c-bean.
- How to access the simple properties of a remote m-bean through a c-bean.
- How to perform an action on a remote m-bean through a c-bean.
Access the readme for this example.
This example shows how to use the JNI interface for Kernel statistics based
on the solaris kstat(3M) interface.
This example runs only on machines with solaris OS.
Access the readme for this example.
The directory containing the source files for these examples depends
on the operating environment:
Operating Environment |
Directory |
Solaris |
installDir/SUNWconn/jaw/examples/mo |
Windows NT |
installDir\SUNWconn\jaw\examples\mo |

Copyright 1999 Sun
Microsystems,
Inc., 901 San Antonio Road, Palo Alto, CA 94303 USA. All rights reserved.