This guide describes how to connect the MC4J JMX Console to the JMX server running in a JOnAS server (see http://mc4j.sourceforge.net/).
Recall that the current JMX implementation used by JOnAS is MX4J (http://mx4j.sourceforge.net/), and that JOnAS supports JSR 160 for remote connections to the JMX server (see Chapter 35 Howto: JSR 160 Support in JOnAS).
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 Chapter 35 Howto: JSR 160 Support in JOnAS for specific JOnAS configurations.
Once connected, you can manage the connection (delete, disconnect or reconnect) and browse the MBeans registered in the JMX server.