1 Reply Latest reply on Dec 16, 2007 12:27 AM by Scott Stark

    duplicated components in ManagementView

    Alexey Loubyansky Master

      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());
       }
       }


      printed

      [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


      I thought maybe I should re-load the view. The re-loaded view did contain the newly created ds. And the code above printed

      [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