• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Yiphee ! I created a MBean, Now What ???? (Tomcat 5.5)

 
salvin francis
Bartender
Posts: 1268
10
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I succeeded to create a Mbean,

My MBean Interface:


When i run this Link:
http://localhost:8080/manager/jmxproxy

Here is my MBean status :


My mbeans-descriptor.xml


now, what i want to do:
1. Change an attribute value
2. Invoke a method

Wait !!!
I did refer online : Apache link for JMX query and set
I tried a lot, but i could not change my Mbean attribute value,
Neither could i invoke my MBean Method

 
salvin francis
Bartender
Posts: 1268
10
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a closest to a valid operation i could get:

http://localhost:8080/manager/jmxproxy/?set=Application:Name=Server,Type=Server&att=X&value=100


Output answer:
Error - java.lang.NumberFormatException: null

I still am not able to set my attribute value,
btw what if my method has more than 1 parameter ? can i call it with two "&value=XXX" tags ? ( i cant try it as i am not being able to set even
a single value

As a point, Tomcat really sucks @ caching, I have to clean,clean working dir,restart server every time. And on a few occasions, even these
led to stale Outputs (please mention any extra thing i can do to ensure fresh output)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic