[infinispan-dev] ResourceDMBean.invoke() should only allow for methods marked with @ManagedOperation to be called from MBeanServer.invoke()

Galder Zamarreno galder.zamarreno at redhat.com
Wed Sep 9 09:59:33 EDT 2009



On 09/09/2009 02:02 PM, Vladimir Blagojevic wrote:
> On 09-09-09 4:57 AM, Mircea Markus wrote:
>> On Sep 8, 2009, at 8:38 PM, Vladimir Blagojevic wrote:
>>
>>
>>> Bela and I deviated from spec intentionally because we liked the fact
>>> that you could expose all class methods by simply annotating class
>>> with
>>> @MBean. Either way it should be simple to fix.
>>>
>> yep, perhaps we should have an exposeByDefault attribute on @MBean
>> that is defaulted to false.
>>
>>
> I think Galder's point is to be as close to spec as possible and I agree
> if we are going to have components that third-party people are going to
> decorate. One day when jdk 7 goes live, and we start using real JMX
> annotations the transition will be easier.

Btw, as per email to the jboss-dev list, JMX annotations will now come 
with JDK8 or whatever Oracle calls that.

> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev

-- 
Galder Zamarreño
Sr. Software Engineer
Infinispan, JBoss Cache



More information about the infinispan-dev mailing list