load properties file in a dynamic Mbean

hey, how to load properties file in a dynamic Mbean?

i could get an enumeration of values and names, and need to set that in the setAttribute function, but in set attribute function i shouldn use the setter and getter method of the individual values of proprty file.

Ex: i shouldn use setName n getName inside the Mbean..

Any Way?

Thanks Athar

[374 byte] By [CoolestAtha] at [2007-10-3 9:16:31]
# 1

Hi,

I haven't understood what you are trying to do.

Say you have a property file like this:

#begin property file

my.propertyone=one

my.propertytwo=two

#end property file

What do you want to expose in your MBean and how?

Best regards,

-- daniel

JMX, SNMP, Java, etc...

http://blogs.sun.com/jmxetc

dfuchsa at 2007-7-15 4:29:22 > top of Java-index,Core,Monitoring & Management...
# 2
Athar,See http://weblogs.java.net/blog/emcmanus/archive/2006/11/a_real_example.html
emcmanusa at 2007-7-15 4:29:22 > top of Java-index,Core,Monitoring & Management...
# 3
Thanks.. this was wat i was looking for :-)So i do transfer the duke dollars as promised
CoolestAtha at 2007-7-15 4:29:22 > top of Java-index,Core,Monitoring & Management...