Page tree
Skip to end of metadata
Go to start of metadata

Up to AIE 4.2, this page was called "JMX Administration." 


In order to support remote/automated monitoring of AIE, a Java Management Extensions (JMX) web console and a JMX Remote Method Invocation (RMI) registry are exposed. Tools such as jconsole can be used to connect to the JMX server for monitoring and management. 

View incoming links.

Enabling Remote JMX Authentication

By default, the remote JMX connectivity via RMI does not require authentication. In order to authenticate against a selected group of users, go to the  <project_dir>\conf\properties\core-app\  file and setting for  property to identify AuthenticationProvider bean to use with remote clients. If this property is not specified, AIE will attempt to use the default security authentication provider bean, similar to Deploy Webapp feature.

# Uncomment to specify the bean name of AuthenticationProvider for remote jmx
# See documentation on JMX authentication for expectations
# Note: Some AIE exposed APIs were implemented with Remote jmx

Credentials to JMX Console

Use mx4j.credentials.username and mx4j.credentials.password (see below) to specify credentials to JMX console.

# Uncomment to add authentication to web interfaces (mx4j) to jmx
# The password can be encrypted with the following command and then wrapped in *{encryptedValuehere} 
# aie-exec encrypt --password "mypassword"

Providing Credentials to acquire ExposedApi

Beside establishing JMX connectivity explicitly to get registered managed bean, AIE Service Factory framework also exposes implementations of ExposedAPI via JMX. Using these services remotely when JMX authentication is turned on thus require credentials. See the following sample code that acquired a  ConfigurationAPI for example:

  public static void main(String[] args) throws Exception {

    System.setProperty("AIE_ZOOKEEPER", "localhost:16980");
    ServiceFactory.setFactoryParams(new JmxAuthParams() {
      public String getUsername() {
        return "foo";
      public String getPassword() {
        return "dev";
    ConfigurationApi api = ServiceFactory.getService(ConfigurationApi.class);

See ServiceFactory and ServiceDiscoveryHelper .

Configuring SSL For JMX

The transport for JMX can be configured to use SSL for an added layer of security.  Add jmx.ssl.enable=true to any property file, or uncomment it from <project-dir>/conf/properties/core-app/   If you have already generated key and certificate information when configuring SSL for the AIE Administrator, there is nothing more to do.  If you want JMX configured for SSL but not the AIE Administrator, then generate key and certificate information as described in the first four steps of Enabling SSL HTTPS for AIE Web Applications. (There is no need to configure Jetty in this case).

# Uncomment to force web access to JMX over SSL
# The same keystore is used as is configured for 'SSL for the AIE Administrator' 

Note: If JMX SSL is enabled in the application, be aware that connecting to JMX will require a few extra steps than if JMX SSL is not enabled.  If you would like to connect using tools such as jconsole you need to add the following system properties when you start up that tool to ensure that you can connect securely:
$JAVA_HOME/bin/jconsole \ \ \ \

If you wish to create your own client using java you can set the system properties when you start your process by passing in the arguments you see above (minus the "-J") or simply set the properties in your code before attempting to establish the secure JMX connection:

3rd party JMX Management Tools

Many management tools such as jconsole can connect to remote processes in order to view and manage system configuration and statistics. By default, AIE creates a RMI endpoint for remote JMX management. In order to connect your 3rd party tool to the AIE JMX server, use the following URI to connect. Note: this URI assumes you used the default 17000 baseport.


  • No labels