How can I name the parameters in my Managent bean so that they show up in the MBean view with useful names instead of p1 and p2?
My MBean interface looks like this:
import org.jboss.annotation.ejb.Management; @Management public interface MyServiceMBean { public String showCustomerDetails(String accountNumber); public String getPathToMessageRequestDefinitionXML(); public String getPathToMessageResponseDefinitionXML(); }
@Service(objectName = "myservice:service=MyServiceMBean") public class MyServiceMBeanImpl implements MyServiceMBean { public String getPathToMessageRequestDefinitionXML() { return "some text"; } public String getPathToMessageResponseDefinitionXML() { return "some text"; } public String showCustomerDetails(String accountNumber) { // code removed. return "some text"; } }
Did you ever find anything? I'm curious to know too.