In the ProfileServiceUnitTestCase I create a new ds deployment. Then I want to get the created component from the management view to check the details.
The ManagementView instance loaded before I created the new ds doesn't see the newly created ds. Although the getDeploymentNames() includes the new -ds.xml. Also the following code
Set<ManagedComponent> comps = mgtView.getComponentsForType(type); if(comps != null) { for(ManagedComponent comp : comps) { System.out.println("comp: " + comp.getName() + " " + comp.getDeployment().getName()); } }
[junit] comp: DefaultDS vfsfile:/E:/cvsroot/trunk/build/output/jboss-5.0.0.Beta3/server/profileservice/deploy/hsqldb-ds.xml [junit] comp: DefaultDS vfsfile:/E:/cvsroot/trunk/build/output/jboss-5.0.0.Beta3/server/profileservice/deploy/hsqldb-ds.xml
[junit] comp: DefaultDS vfsfile:/E:/cvsroot/trunk/build/output/jboss-5.0.0.Beta3/server/profileservice/deploy/hsqldb-ds.xml [junit] comp: TestLocalTxDs vfsfile:/E:/cvsroot/trunk/build/output/jboss-5.0.0.Beta3/server/profileservice/deploy/testLocalTxDs-ds.xml [junit] comp: DefaultDS vfsfile:/E:/cvsroot/trunk/build/output/jboss-5.0.0.Beta3/server/profileservice/deploy/hsqldb-ds.xml [junit] comp: TestLocalTxDs vfsfile:/E:/cvsroot/trunk/build/output/jboss-5.0.0.Beta3/server/profileservice/deploy/testLocalTxDs-ds.xml [junit] comp: DefaultDS vfsfile:/E:/cvsroot/trunk/build/output/jboss-5.0.0.Beta3/server/profileservice/deploy/hsqldb-ds.xml [junit] comp: DefaultDS vfsfile:/E:/cvsroot/trunk/build/output/jboss-5.0.0.Beta3/server/profileservice/deploy/hsqldb-ds.xml
Ok, the component map is not being managed correctly then.