This documentation is for WSO2 Enterprise Service Bus version 4.9.0 . View documentation for the latest release.
Skip to end of metadata
Go to start of metadata

The jconsole tool is a JMX-compliant graphical tool for monitoring a Java virtual machine. If you have installed java, you will automatically get this tool. We will add an endpoint (name "ep1") and monitor the states transition between states in ep1.

1. Add an address endpoint called "ep1." See Adding an Endpoint.

2. Start jconsole by typing jconsole at your termnial, if you encounter any problem, please, consult your operating system guide. You will see the following console once you select MBeans tab.

3.Go to org.apache.synpase menu from left hand and expand it. You will see the following figure with the endpoint "ep1" that we just added.

4. Select the "ep1" endpoint and you will see the information related to this endpoint. 

Note

The state is given as active as the first entry and value is set to true. The endpoint is in active state.

5. Go to the "Operations" tab and switch off the endpoint. You will see a message saying the operation was successful.

You will also see a INFO level log message saying that the endpoint was switched off manually.

[2009-06-23 12:18:21,149] INFO - EndpointContext Manually switching off endpoint : ep1

6. Next again switch back to the "Attributes" tab and see the state of the endpoint after refreshing it. You will see endpoint is inactive and the endpoint is in switch off state. At this point, if you try to use a client which use this endpoint, you will see it fails since the endpoint is down. You can use a similar approach activate the endpoint back.

  • No labels