Quoting Bruno <[EMAIL PROTECTED]>: > Hello, > > I have written an MBean that extends ServiceMBeanSupport > and the corresponding interface that extends ServiceMBean. > > In the interface I have 2 methods: > > public ArrayList getRegisteredJndiNames(); > public void logRegisteredJndiNames(); > > They are implemented in the MBean: > > public ArrayList getRegisteredJndiNames() { > return registered; > } > public void logRegisteredJndiNames() { > return log.info(registered); > } > > However, when I look at the jmx-console, I can only see the > logRegisteredJndiNames()-method. That is also the only method > I can invoke when I call the MBean. > > What can be wrong with my getRegisteredJndiNames-method. > Is it not allowed to return an ArrayList? The returntype > seems to be the only difference between the two methods.
I have found the problem. It seems to been forbidden to use get- or set-methods if you want them to show up in a construction like this: MBeanOperationInfo[] opInfo = info.getOperations(); I change the method name to returnRegisteredJndiNames() and it worked... ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user