[jboss-dev-forums] [Design of POJO Server] - ProfileService Guidance
anil.saldhana@jboss.com
do-not-reply at jboss.com
Mon Oct 13 00:46:30 EDT 2008
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#4181737
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4181737
More information about the jboss-dev-forums
mailing list