While using @Management annotation in the MBean class an error called " Cannot find value method" is fired. my code is given below. the error is fired at place mentioned in BOLD.
package trail.jmx; import org.jboss.annotation.ejb.Service; import org.jboss.annotation.ejb.Management; import javax.ejb.Stateful; @Service (objectName="trail:service=calculator") @Management(Calculator.class) public class CalculatorMBean implements Calculator { double growthrate; public void setGrowthrate (double growthrate) { this.growthrate = growthrate; } public double getGrowthrate () { return growthrate; } public double calculate (int start, int end, double saving) { double tmp = Math.pow(1. + growthrate / 12., 12. * (end - start) + 1); return saving * 12. * (tmp - 1) / growthrate; } // Lifecycle methods public void create() throws Exception { growthrate = 0.08; System.out.println("Calculator - Creating"); } public void destroy() { System.out.println("Calculator - Destroying"); } } package trail.jmx; import org.jboss.annotation.ejb.Management; @Management public interface Calculator { public void setGrowthrate (double g); public double getGrowthrate (); // The management method public double calculate (int start, int end, double saving); // Life cycle method public void create () throws Exception; public void destroy () throws Exception; } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3933010#3933010 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3933010 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user