I have enabled jboss org.jboss.jmx.connector.invoker.AuthorizationInterceptor in the jmx-invoker-service.xml file and when invoking the mbean to get multiple attributes in a single call, I get this exception:
IllegalArgumentException("Opname type not recognized");
If you get an mbean connection from the RMIAdaptor
and issue:
MBeanServerConnection.getAttributes(objectName,new String[]{"name","state","running"});
It will toss the exception.
From the code it looks like it only supports a String operation name or an Attribute object ( setter ) but not an array of Strings.
I can't find a workaround. Is there another AuthorizationInterceptor to use.
Maybe this is a bug.
I am most likely going to have to write my own.
Thanks.