As you may have known through jmx-console of JBoss, you can do a bunch of configurations.
This post is NOT supposed to tell you which kind of configuration you can set in the console. Here I just want to answer one question, what is the jmx-console.
Suppose we have an application deployed in JBoss called MyApp, suppose the url of our application server is http://app.mycompany.com
So after installing JBoss successfully, you can access the jmx-console through
http://app.mycompany.com:8080 and access MyApp through
http://app.mycompany.com:8080/MyApp.
OK. But if you expose the above URL to your customer,I do not think he/she will accept it. I have browsed hundreds of web sites but I seldom found a web page with a port number!
How to resolve this? Based on my experience, we can set up a web server. Apache httpd server is a good candidate (http://bit.ly/YwBZmw gives you an idea about how to make the Apache httpd server as a proxy between your request and the application server. ). Now we can access MyApp through(suppose our web server is located in http://www.mycompany.com)
http://www.mycompany.com/MyApp
Normally in this way we hide the application server from the visitors.
A request will be routed to the application server by the httpd server.
OK. Everything looks fine. Wait…. What if I want to access the jmx-console?
Can I still use http://app.mycompany.com:8080? The answer is NO. This URL should have already be hidden.
Then how to do it?
Let me ask you a question, what is jmx-console? It is nothing but a web application!
We can access MyApp through
http://www.mycompany.com/MyApp
Why I can not access the jmx-console application in this way?
http://www.mycompany.com/jmx-console
====
Summary
In this post we answered the question what is jmx-console. The answer is it is an application. So we can access it just like a web application. You may think this post is really simple. But I hope it could be helpful for some JBoss newbies.