• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Bartender
Posts: 2911
150
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 2911
150
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic