[jboss-cvs] JBossAS SVN: r71047 - trunk/profileservice/src/main/org/jboss/profileservice/management.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Mar 20 00:22:41 EDT 2008
Author: scott.stark at jboss.org
Date: 2008-03-20 00:22:41 -0400 (Thu, 20 Mar 2008)
New Revision: 71047
Modified:
trunk/profileservice/src/main/org/jboss/profileservice/management/ManagementViewImpl.java
Log:
Reset the profile related maps when reprocessing the profile
Modified: trunk/profileservice/src/main/org/jboss/profileservice/management/ManagementViewImpl.java
===================================================================
--- trunk/profileservice/src/main/org/jboss/profileservice/management/ManagementViewImpl.java 2008-03-20 04:05:59 UTC (rev 71046)
+++ trunk/profileservice/src/main/org/jboss/profileservice/management/ManagementViewImpl.java 2008-03-20 04:22:41 UTC (rev 71047)
@@ -175,8 +175,13 @@
throw new NoSuchProfileException(msg);
}
// Process the deployments
- // TODO: this should only be done once for a profile
Set<String> deploymentNames = activeProfile.getDeploymentNames();
+ this.compByCompType.clear();
+ this.managedDeployments.clear();
+ this.moRegistry.clear();
+ this.runtimeMOs.clear();
+ this.unresolvedRefs.clear();
+
for(String name : deploymentNames)
{
try
@@ -216,6 +221,8 @@
{
processManagedObject(mo, md);
}
+ if(name.endsWith("hsqldb-ds.xml"))
+ log.debug("processManagedDeployment, hsqldb-ds.xml");
managedDeployments.put(name, md);
List<ManagedDeployment> mdChildren = md.getChildren();
if(mdChildren != null && mdChildren.isEmpty() == false)
@@ -292,6 +299,8 @@
if(mo.getName().endsWith("DefaultDS"))
log.info("DefaultDS ManagementComponent");
md.addComponent(mo.getName(), comp);
+ if(mo.getName().endsWith("QueueServiceMO"))
+ log.info("Saw QueueServiceMO");
log.debug("Added ManagementComponent: "+mc+"under name: "+mo.getName());
Set<ManagedComponent> typeComps = compByCompType.get(type);
if (typeComps == null)
@@ -830,6 +839,8 @@
ManagedComponent serverComp = compMD.getComponent(comp.getName());
if(serverComp == null)
{
+ log.debug("Name: "+comp.getName()+" does not map to existing ManagedComponet in ManagedDeployment: "+md.getName()
+ + ", components: "+compMD.getComponents());
formatter.applyPattern(i18n.getString("ManagementView.InvalidComponentName")); //$NON-NLS-1$
Object[] args = {comp.getName(), md.getName()};
String msg = formatter.format(args);
More information about the jboss-cvs-commits
mailing list