incubator-kalumet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject svn commit: r1232935 - /incubator/kalumet/trunk/controller/jboss/src/main/java/org/apache/kalumet/controller/jboss/JBoss6Controller.java
Date Wed, 18 Jan 2012 15:38:48 GMT
Author: jbonofre
Date: Wed Jan 18 15:38:48 2012
New Revision: 1232935

URL: http://svn.apache.org/viewvc?rev=1232935&view=rev
Log:
[KALUMET-6] Fix the way that JBoss6Controller get the ServerHomeLocation attribute

Modified:
    incubator/kalumet/trunk/controller/jboss/src/main/java/org/apache/kalumet/controller/jboss/JBoss6Controller.java

Modified: incubator/kalumet/trunk/controller/jboss/src/main/java/org/apache/kalumet/controller/jboss/JBoss6Controller.java
URL: http://svn.apache.org/viewvc/incubator/kalumet/trunk/controller/jboss/src/main/java/org/apache/kalumet/controller/jboss/JBoss6Controller.java?rev=1232935&r1=1232934&r2=1232935&view=diff
==============================================================================
--- incubator/kalumet/trunk/controller/jboss/src/main/java/org/apache/kalumet/controller/jboss/JBoss6Controller.java
(original)
+++ incubator/kalumet/trunk/controller/jboss/src/main/java/org/apache/kalumet/controller/jboss/JBoss6Controller.java
Wed Jan 18 15:38:48 2012
@@ -101,7 +101,7 @@ public class JBoss6Controller extends Ab
             ObjectName deploymentScannerMBean = new ObjectName("jboss.deployment:flavor=URL,type=DeploymentScanner");
             server.invoke(deploymentScannerMBean, "stop", null, null);
             ObjectName serverConfigMBean = new ObjectName("jboss.system:type=ServerConfig");
-            String deployFolder = ((String) server.getAttribute(serverConfigMBean, "ServerHomeLocation"))
+ "/deploy";
+            String deployFolder = ((URL) server.getAttribute(serverConfigMBean, "ServerHomeLocation")).toString()
+ "/deploy";
             this.deployURL = new URL(deployFolder);
         } catch (Exception e) {
             LOGGER.error("Can't stop the JBoss deployment scanner or get the deploy folder",
e);



Mime
View raw message