participate


JMX - load properties file in a dynamic Mbean
<<   Back to Forum  |   Give us Feedback
5 Duke Stars rewarded for this thread
This topic has 3 replies on 1 page.
CoolestAth
Posts:5
Registered: 1/12/06
load properties file in a dynamic Mbean   
Nov 7, 2006 12:52 PM

 
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
 
dfuchs
Posts:416
Registered: 1/5/06
Re: load properties file in a dynamic Mbean   
Nov 8, 2006 1:58 AM (reply 1 of 3)  (In reply to original post )

 
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
 
emcmanus
Posts:206
Registered: 1/27/98
Re: load properties file in a dynamic Mbean      
Nov 8, 2006 7:39 AM (reply 2 of 3)  (In reply to original post )

 
Athar,

See http://weblogs.java.net/blog/emcmanus/archive/2006/11/a_real_example.html
 
CoolestAth
Posts:5
Registered: 1/12/06
Re: load properties file in a dynamic Mbean   
Nov 10, 2006 5:37 PM (reply 3 of 3)  (In reply to #2 )

 
Thanks.. this was wat i was looking for :-)
So i do transfer the duke dollars as promised
 
This topic has 3 replies on 1 page.
Back to Forum
 
Read the Developer Forums Code of Conduct

Click to email this message Email this Topic

Edit this Topic
  
 
 
Forums Statistics
    Users Online : 59
  • Guests : 125

About Sun forums
  • Sun Forums is a large collection of user generated discussions. It is here to help you ask questions, find answers, and participate in discussions.

    Check out our guide on Getting started with Sun Forums for a full walkthrough of how to best leverage the benefits of this community.

Powered by Jive Forums