• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 255
  • Last Modified:

JMX

Hi,

What is JMX? What does it used for? Important question....where does it fit to my J2EE framework? In which aspect it is very useful in my project?

Regards
Dave
0
suprapto45
Asked:
suprapto45
  • 9
  • 6
  • 2
2 Solutions
 
aozarovCommented:
JMX is a powerfull and in fact the most popular way currently to manage/monitor/configure java services.
It is part of JDK 5.0 (or can be used as a seperate package for earlier JVM  versions)
It is part of J2EE as way to manage/configure/monitor your application server (JSR 177)
It provides connectors that can expose your instrumentation layer (your managed services) via RMI/HTTP/SNMP and others.
It provides framework services that can be used by other MBeans (e.g. MLets, Timer, ...)
There are plenty tutorials on the web but the main site is: http://java.sun.com/products/JavaManagement/
0
 
suprapto45Author Commented:
Hi auzarov,

What does it mean?
"manage/configure/monitor your application server" and "expose your instrumentation layer "

Regards
Dave
0
 
aozarovCommented:
Though tomcat is not application server it can also be configured via JMX  see: http://www.javaworld.com/javaworld/jw-06-2001/jw-0608-jmx.html
other tutorials: http://www.caucho.com/resin-3.0/jmx/tutorial/index.xtp
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
aozarovCommented:
JMX enabled services can be monitored (so you can get information about their state [alive,status,...]
You can configure them (like change their logging level)
and you can invoke operation on them based on needs.

instrumentation layer is the JMX term to describe the managed services or MBeans.
0
 
suprapto45Author Commented:
Hi,

Still can't get the idea what JMX used for? Hehe..I just want to try to implement all the technologies to my new project :).

Regards
Dave
0
 
suprapto45Author Commented:
Hi,

What does it mean by "java service" here? EJB Methods or etc?

Regards
Dave
0
 
aozarovCommented:
Found some good starting point (if you are using java 1.5).
http://java.sun.com/j2se/1.5.0/docs/guide/jmx/tutorial/essential.html
It has a step by step example of how to write a simple MBean
0
 
aozarovCommented:
java service -> any java application but mostly ones hat provides a services to other elements.
0
 
suprapto45Author Commented:
mmm....will that fit to J2EE framework then?

Dave
0
 
aozarovCommented:
Dave, I am going to sleep now (its 2:40 AM here)
I encourge you to read the link I provided above and try its examples then revist what we discussed so far.
0
 
aozarovCommented:
>> J2EE framework then?
Sure, I mentioned that JSR 177.
application server in J2EE 1.4 should implmenet it.
Also, you can always hook your MBeans into their MBeanServer. (JBoss is doing it really well).
And as I said Tomcat comes with one as well.

0
 
suprapto45Author Commented:
Absolutely, good night auzarov :). I believe that you are in US or somewhere near there, am I right?

Regards
Dave
0
 
aozarovCommented:
Right, Boston.
0
 
suprapto45Author Commented:
Thx objects,

I will read both of your recommendations.

Regards
Dave
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 9
  • 6
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now