[jboss-cvs] JBossAS SVN: r68429 - trunk/system-jmx/src/main/org/jboss/deployment.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Dec 19 14:51:39 EST 2007
Author: alesj
Date: 2007-12-19 14:51:39 -0500 (Wed, 19 Dec 2007)
New Revision: 68429
Modified:
trunk/system-jmx/src/main/org/jboss/deployment/MainDeployer.java
Log:
Use contextMap to do isDeployed lookup.
Modified: trunk/system-jmx/src/main/org/jboss/deployment/MainDeployer.java
===================================================================
--- trunk/system-jmx/src/main/org/jboss/deployment/MainDeployer.java 2007-12-19 19:23:37 UTC (rev 68428)
+++ trunk/system-jmx/src/main/org/jboss/deployment/MainDeployer.java 2007-12-19 19:51:39 UTC (rev 68429)
@@ -1325,7 +1325,11 @@
*/
public boolean isDeployed(URL url)
{
- org.jboss.deployers.spi.DeploymentState deploymentState = delegate.getDeploymentState(url.toString());
+ String name = contextMap.get(url);
+ if (name == null)
+ throw new IllegalArgumentException("No such context: " + url);
+
+ org.jboss.deployers.spi.DeploymentState deploymentState = delegate.getDeploymentState(name);
log.debug("isDeployed, url="+url+", state="+deploymentState);
return deploymentState == org.jboss.deployers.spi.DeploymentState.DEPLOYED;
}
More information about the jboss-cvs-commits
mailing list