I am trying to apply the management annotations on the security beans.
As an example, I have a bean
| @ManagementObject(
| componentType = @ManagementComponent(type = "MCBean", subtype =
"*"),
| properties = ManagementProperties.EXPLICIT)
| @ManagementObjectID(name="JBossSecuritySubjectFactory")
| public class JBossSecuritySubjectFactory implements SubjectFactory, Serializable
| {
| private static final long serialVersionUID = 1L;
|
Now in the following test code:
| public void testSecurityBeans() throws Exception
| {
| ManagementView managementView = this.getManagementView();
| assertNotNull(managementView);
| ComponentType type = new ComponentType("MCBean", "*");
|
| Set<ManagedComponent> managedSet =
managementView.getComponentsForType(type);
| ManagedComponent component =
managementView.getComponent("JBossSecuritySubjectFactory", type);
|
| }
|
both managedSet and component are null.
I do not know what else is needed.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4181737#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...