Knowledge Base > Automation Engine and Target Systems > Java EE/JMX > Generating MBeans from Webservices

Generating MBeans from Web Services

Guideline for the creation of MBeans based on Web services.

Knowledge of Java and Web services is required in order to be able to fully understand this guideline.

AE provides support neither for Web services nor for MBeans.

General

The Automation Engine supports Web services through the usage of MBeans in combination with the JMX agent. Many vendors offer Web services rather than MBeans as interfaces that provide access to their applications. This guideline describes step by step how an MBean is generated from an existing Web service. The Web service "CurrencyConvertor" which is provided by Generic Objects Technologies Ltd serves as an example. It supplies currency exchange rates.

Requirements:

MBeans can only be created for synchronous Web services. Using asynchronous  Web services is much more difficult and must be handled individually.

Thoroughly test the generated MBean.

Installation

1.

Setting up Apache Axis

2.

Generating Java classes for calling the Web service

3.

Creating an MBean for using the Java classes

4.

Creating the MBean's JAR file and the Java classes

5.

Starting the JMX Agent using an MBean

UNIX: use a colon (":") instead of a semicolon (";").

The JMX agent does not require an application server but can run independently. It is sufficient to install the Java version 5 as it contains the required JMX packages of version 1.2.

Usage

1.

Creating a JMX job

2.

Using the MBean