On 09-09-08 12:41 PM, Galder Zamarreno wrote:
Hi again,
Another thing I've spotted. I've realised that you can
MBeanServer.invoke() to call any method on a class that is exposed as
MBean via @MBean annotation because of the logic in ResourceDMBean.invoke().
Shouldn't such invocations be limited only to those methods that have
been exposed via @ManagedOperation?
Cheers,
If I recall the rule is if class is annotated with @MBean then all
operations are exposed automatically. We can make the logic whatever we
want. Bela and I designed this one for JGroups and Mircea adopted it.