[jboss-jira] [JBoss JIRA] Commented: (JBAS-6594) org.jboss.test.profileservice.test.ServiceBindingManagedObjectsTestCase
Scott M Stark (JIRA)
jira-events at lists.jboss.org
Tue Apr 28 01:21:46 EDT 2009
[ https://jira.jboss.org/jira/browse/JBAS-6594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12464741#action_12464741 ]
Scott M Stark commented on JBAS-6594:
-------------------------------------
The problem is that there are two components with the name ports-default, bu the ManagedDeployment only support adding components by name, so only one of:
org.jboss.managed.plugins.ManagedComponentImpl@{name=ports-default, type=ComponentType{type=MCBean, subtype=ServiceBindingManager}, owner=ManagedDeployment at 15177518},
org.jboss.managed.plugins.ManagedComponentImpl@{name=ports-default, type=ComponentType{type=MCBean, subtype=ServiceBindingSet}, owner=ManagedDeployment at 15177518},
is actually added. Previously it looks like we were creating ManangedComponents even if the ManagedDeployment already had a component of the same name. These were kept in a separate map keyed by component type, so both were available from the ManagementView. That behavior could be restored, but both components still would not be available from the ManagedDeployment, so I think its best to change the ServiceBindingManager id to be independent of the binding set name it uses.
> org.jboss.test.profileservice.test.ServiceBindingManagedObjectsTestCase
> -----------------------------------------------------------------------
>
> Key: JBAS-6594
> URL: https://jira.jboss.org/jira/browse/JBAS-6594
> Project: JBoss Application Server
> Issue Type: Sub-task
> Security Level: Public(Everyone can see)
> Components: ProfileService
> Reporter: Shelly McGowan
> Assignee: Scott M Stark
>
> testServiceBindingMetadata:
> ManagementView managementView = getManagementView();
> ComponentType type = new ComponentType("MCBean", "ServiceBindingMetadata");
> Set<ManagedComponent> mcs = managementView.getComponentsForType(type);
> assertTrue("There are ServiceBindingMetadata components", mcs.size() > 0);
> junit.framework.AssertionFailedError: There are ServiceBindingMetadata components
> at org.jboss.test.profileservice.test.ServiceBindingManagedObjectsTestCase.testServiceBindingMetadata(ServiceBindingManagedObjectsTestCase.java:196)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list