JBoss ServerInfoMBean - How do I use it from within a Session EJB?
I need to display information about my JBoss server in a client application. I'm going to implement that by adding a method to one of my Stateless Session Bean that returns a single object (POJO) with this information.
The information I'm looking for are (among others):
- The runtime configuration name of the JBoss server.
- The version of the JBoss
- The version of the JVM
Basically this is the same information that is displayed on the "web-console" web application that comes with JBoss.
I took a look at that web app and unfortunately I only found the JSP way of doing this. They use some JBoss specific tag library to gain access to the ServerInfoMBean and from there it's easy for them to get all this information.
My question is: How do I get access to the ServerInfoMBean from within my Stateless Session EJB?
I'm going to try to dig up this taglib that JBoss uses and I'll post a comment here if I find out how they do that there.