Example on Standard MBean

Contents:

Introduction

This is a simple example to illustrate the usage of StandardMBean registered with the Multi-Protocol agent.
__________________________________________________________________________________________________________________________

Overview

This example is a simple Multi-Protocol Agent with two adaptors registered to provide remote access to the Multi-Protocol Agent. The two protocols supported are RMI/CORBA. It illustrates the creation of a StandardMBean by creating and registering a sample StandardMBean (SimpleClass MBean) with the MBeanServer.
__________________________________________________________________________________________________________________________

Getting Started :

Source files

The source files present in the example directory are,

Compilation

To compile the source files go to WebNMS/JavaAgent/examples/jmx/standardMBean directory in the command prompt and type,
compile *.java [Windows]
sh compile sh *.java [Linux/Solaris]

This will compile the source files in the respective directory.

Running the Agent

To start the agent go to WebNMS/JavaAgent/examples/jmx/standardMBean directory in the command prompt and

1. Use the run.bat or run.sh

            By default,
                 (a) the RMI registry service will be started at port 1099
                 (b) the Corba registry service will be running on 1050

2. Use MBean browser to access the data through RMI ( You can start the MBean Browser using MBeanBrowser.bat/MBeanBrowser.sh in WebNMS/JavaAgent/bin directory)

Testing

__________________________________________________________________________________________________________________________

Copyright (c) 2009  ZOHO Corp. All Rights Reserved.