# Howto: Using the MC4J JMX Console

This guide describes how to connect the MC4J JMX Console to the JMX server running in a JOnAS server.

Recall that the current JMX implementation used by JOnAS is MX4J, and that JOnAS supports JSR 160 for remote connections to the JMX server (see the corresponding Howto document).

## Connecting to the JMX server

Launch the MC4J console and create a JSR160 connection using the connection wizard.

- Choose JSR160 connector type
- Provide a name for your connection
- Change the server URL. The URL to use depends on the following configuration parameters of JOnAS:
  - JONAS server name
  - The host on which JOnAS is running
  - The protocol used by the JOnAS name service (use only jrmp or iiop)
  - The port number used by the JOnAS name service for that protocol

  For example, in the case of a JOnAS server having a default configuration and default name, you would use the following URL: `service:jmx:rmi:///jndi/rmi://host:1099/jrmpconnector_jonas`.

  See the JSR 160 Support in JOnAS Howto document for specific JOnAS configurations.

Once connected, you can manage the connection (delete, disconnect or reconnect) and browse the MBeans registered in the JMX server.