Reputation: 4010
Is it possible to have a description showing up in the JMX console for my MBean's methods and paramenters.
Right now this is how I see my MBean in the JBoss JMX Console:
Is there some annotation that can do that job for me?
Something like in the code snippet bellow (I just made the annotations up, not sure if they exist):
@Management
public interface InterestRateManager {
@Description("Sets the interest rate")
public void setInterestRate(@Description("The interest rate") double g);
public double getInterestRate();
}
The end result would be to have the p1 have a meaningful name and to have the description.
Not super sure if this is relevant but I'm using JBoss 4.2.2 GA.
Thanks!
Upvotes: 1
Views: 1858
Reputation: 16056
Yup, it's possible. You have 2 primary options:
Upvotes: 2