JMX Jobs
If your Automic Automation system is integrated with JMX through the Java EE/JMX Agent, you can use JMX Jobs to run scripts on JMX platforms. The JMX Agent interprets and transforms the commands sent by the Client so that JMX understands them.
Prerequisites:
- The JMX Agent is active
- The JMX Agent is assigned to the job on the Attributes page
- The Job has a Login (LOGIN) object assigned that contains the credentials to log in to the JMX system
Defining JMX Jobs
An JMX Job definition is made up of the following pages:
- Standard pages that are always available, no matter what type of object you are defining:
- Additional pages that are always available for executable objects:
Note: JMX Jobs have an extra Child Post Process page. You build the logic of the child processes on this page.
- Attributes Page
- Registering External Output Files
- Variables Page
- Prompt Sets Page
- Rollback Page
- The JMX page described here.
Server Settings Section
-
MBean Server: Local Java VM
Select this option if the MBean server is on the same computer as the JMX agent and select the server to be used from the Server Connection dropdown list.
The options are:
-
Use any existing MBean Server
If you select this option, an arbitrary MBean server is retrieved automatically.
The option Create new instance if not found is displayed.
-
Specify MBean Server
Select this option if you want to specify the agent that will process the JMX jobs and enter it in the Agent ID field. It can contain up to 20 characters.
-
Via JNDI
Select this option if the connection is established to a local MBean server that is located in an SAP Java EE server.
The Object Name field is displayed, where you enter the name of the object that will be called. It can contain up to 22 characters.
-
-
MBean Server: Remote Java VM
Select this option if the MBean server is on a different computer than tn the JMX agent an specify it using the following options:
-
Initial Context Factory
Depending on the vendor of the MBean server, you might need to enter a value here.
-
Server URL
URL of the computer on which the MBean server is located.
-
Job Report Section
For information on the Job Report section, see Job Reports.
JMX Commands
JMX Jobs contain sets of predefined commands. A command is a group of JMX-specific strings or functions. You build the logic of an JMX Job on its Process page by adding commands to it. The JMX Process pages contain an additional view called Forms, an intuitive and user-friendly way of depicting the values in a particular command. The Form view of a command can contain dropdown lists, input fields, radio buttons, and so on. For more information, see Process Pages and Forms View on the Process Page
Creating JMX Jobs with Oracle
- Select Remote Java VM .
- Enter weblogic in the Initial Context Factory field.
- Enter the URL with the following format:
t3://name of the Weblogic server:port of the Weblogic server
Creating JMX Jobs with IBM WebSphere
To create Jobs using the RMI connector:
- Select Remote Java VM .
- Enter websphere in the Initial Context Factory field.
- Enter the URL with the following format:
Host name of the WebSphere:port of BOOTSTRAP_ADDRESS
To create Jobs using the SOAP connector, that is, WebSphere with activated administrative security:
- Select Remote Java VM .
- Enter websphere in the Initial Context Factory field.
Important! As of WebSphere version 7, there is the option to not include any settings in the [WEBSPHERE] INI file section. In this case, you must enter websphere soap in the Initial Context Factory field.
- Enter the URL with the following format:
Host name of the WebSphere:SOAP port
Retrieve the port number as follows:
- Log on to the administrator console.
- Click on Servers > Application server.
- Click on your server.
- Select Transfers > Ports.
Use the port number shown here in the URL. The SOAP port's default value is 8880
- Return to the Automic Web Interface and specify the three passwords in the job's Login object: User, Keystore and Truststore.
Important! The SOAP connector must be activated. Its port is usually 8880.
Creating JMX Jobs with JBoss
- Select Local Java VM.
- Select Use existing MB Server
It is not necessary to activate the Create new instance if not found option.
Creating JMX Jobs with Oracle Containers for Java EE
- Select Remote Java VM .
- Enter oc4j in the Initial Context Factory field.
- Enter the URL with the following format:
service:jmx:rmi://Host name of the Java EE server:port/oc4j
Creating JMX Jobs with SAP Netweaver
- Select JNDI.
- Enter jmx in Object Name.
Creating JMX Jobs if the JMX Agent Runs Outside an Application Server
- Select Local Java VM.
- Activate both Use existing MBean Server and Create new instance.
See also: