[jboss-dev-forums] [Design the new POJO MicroContainer] - duplicated components in ManagementView
alex.loubyansky@jboss.com
do-not-reply at jboss.com
Sat Dec 15 16:27:50 EST 2007
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
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113187#4113187
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113187
More information about the jboss-dev-forums
mailing list